export { createFakeMobilePrimary, seedFakeMobilePrimary } from './api/FakeMobilePrimary'
export type { FakeMobilePrimary, SeedFakeMobilePrimaryOptions } from './api/FakeMobilePrimary'
export { FakePairingDriver } from './api/FakePairingDriver'
export type {
    CompanionPairingMaterial,
    FakePairingDriverDeps,
    FakePairingDriverOptions
} from './api/FakePairingDriver'
export { FakePeer } from './api/FakePeer'
export type {
    CreateFakePeerOptions,
    ExpectGroupMessageOptions,
    ExpectMessageOptions,
    ReceivedMessage,
    SendMessageOptions
} from './api/FakePeer'
export { FakeServerSession, FakeWaServer } from './api/FakeWaServer'
export type {
    BinaryNode,
    ExpectIqOptions,
    ExpectStanzaOptions,
    FakeSessionKeyInfo,
    FakeWaServerNoiseRootCa,
    FakeWaServerOptions,
    FakeWaServerPipelineListener,
    StanzaMatcher,
    WaFakeAuthenticatedInfo,
    WaFakeConnectionPipeline
} from './api/FakeWaServer'
/**
 * Signing half of the Noise root, needed only to pin
 * {@link FakeWaServerOptions.noiseRootCa}. Readers of `server.noiseRootCa` get
 * the public-only {@link FakeWaServerNoiseRootCa} instead.
 */
export type { FakeNoiseRootCa } from './protocol/auth/cert-chain'
export { IqExpectation, Scenario } from './api/Scenario'
export type { AuthenticatedPipelineListener, ScenarioServer } from './api/Scenario'
export { WaFakeConnection } from './infra/WaFakeConnection'
export type {
    WaFakeConnectionHandlers,
    WaFakeConnectionState,
    WaFakeSocketEvents,
    WaFakeSocketLike
} from './infra/WaFakeConnection'
export { WaFakeTcpServer } from './infra/WaFakeTcpServer'
export type { WaFakeTcpServerListenInfo, WaFakeTcpServerOptions } from './infra/WaFakeTcpServer'
export { createTcpSocketAdapter, createWebSocketAdapter } from './infra/socket-adapters'
export {
    ClientPayloadValidationError,
    parseClientPayload
} from './protocol/auth/client-payload-validate'
export type {
    ClientPayloadFlavor,
    LoginPayload,
    MobileLoginDetails,
    ParsedClientPayload,
    RegistrationPayload
} from './protocol/auth/client-payload-validate'
export type {
    WaFakeIqConnection,
    WaFakeIqContext,
    WaFakeIqHandler,
    WaFakeIqMatcher,
    WaFakeIqResponder,
    WaFakeIqRouterEvents,
    WaFakeIqType
} from './protocol/iq/router'
export {
    parseKeyIndexListPublish,
    parsePairDeviceUpload,
    parseRemoveCompanionDevice
} from './protocol/iq/companion-host'
export type {
    ParsedKeyIndexListPublish,
    ParsedPairDeviceUpload,
    ParsedRemoveCompanionDevice
} from './protocol/iq/companion-host'
export {
    buildCompanionHelloResultContent,
    buildLinkCodeNotification,
    parseLinkCodeStanza
} from './protocol/iq/link-code'
export type {
    BuildLinkCodeNotificationInput,
    LinkCodeStage,
    ParsedLinkCodeStanza
} from './protocol/iq/link-code'
export {
    buildAccountSyncDevicesNotification,
    buildAccountTakeoverNotice,
    buildRegistrationCodeNotification
} from './protocol/push/mobile-notification'
export type {
    BuildAccountSyncDevicesInput,
    BuildAccountTakeoverNoticeInput,
    BuildRegistrationCodeNotificationInput,
    FakeAccountDevice
} from './protocol/push/mobile-notification'
export { FakeCompanionHostState, readCompanionKeyIndex } from './state/fake-companion-host'
export type {
    FakeLinkedCompanion,
    FakeMobilePrimaryIdentity,
    FakePublishedKeyIndexList
} from './state/fake-companion-host'
export {
    buildAppStateSyncFullResult,
    buildAppStateSyncResult,
    buildServerSyncNotification,
    parseAppStateSyncRequest
} from './protocol/iq/appstate-sync'
export type {
    BuildAppStateSyncFullResultInput,
    BuildAppStateSyncResultInput,
    BuildServerSyncNotificationInput,
    FakeAppStateCollectionName,
    FakeAppStateCollectionPayload
} from './protocol/iq/appstate-sync'
export { buildIqError, buildIqResult } from './protocol/iq/router'
export { buildCall, buildFailure } from './protocol/push/call-failure'
export type { BuildCallInput, BuildFailureInput } from './protocol/push/call-failure'
export { buildChatstate } from './protocol/push/chatstate'
export type { BuildChatstateInput, FakeChatstateState } from './protocol/push/chatstate'
export { buildIncomingErrorStanza } from './protocol/push/error-stanza'
export type { BuildIncomingErrorStanzaInput } from './protocol/push/error-stanza'
export { buildAppStateSyncKeyShareMessage } from './protocol/push/app-state-key-share'
export type {
    BuildAppStateSyncKeyShareInput,
    FakeAppStateSyncKey
} from './protocol/push/app-state-key-share'
export {
    buildHistorySyncExternalMessage,
    buildHistorySyncMessage,
    encodeHistorySyncPlaintext
} from './protocol/push/history-sync'
export type {
    BuildHistorySyncExternalInput,
    BuildHistorySyncInput,
    FakeHistorySyncConversation,
    FakeHistorySyncPushname,
    FakeHistorySyncWebMessage
} from './protocol/push/history-sync'
export {
    APP_STATE_EMPTY_LT_HASH,
    FakeAppStateCrypto
} from './protocol/signal/fake-app-state-crypto'
export type {
    FakeAppStateDerivedKeys,
    FakeAppStateEncryptedMutation,
    FakeAppStateMutationInput
} from './protocol/signal/fake-app-state-crypto'
export { FakeAppStateCollection } from './state/fake-app-state-collection'
export type {
    FakeAppStateCollectionOptions,
    FakeAppStateMutationDescriptor
} from './state/fake-app-state-collection'
export { FakeMediaStore } from './state/fake-media-store'
export type { FakeMediaType, PublishedMediaBlob, PublishMediaInput } from './state/fake-media-store'
export { buildMessage } from './protocol/push/message'
export type { BuildMessageInput, FakeEncChild, FakeEncType } from './protocol/push/message'
export { buildGroupNotification, buildNotification } from './protocol/push/notification'
export type {
    BuildGroupNotificationInput,
    BuildNotificationInput
} from './protocol/push/notification'
export { buildIncomingPresence } from './protocol/push/presence'
export type {
    BuildIncomingPresenceInput,
    FakePresenceLastSentinel,
    FakePresenceType
} from './protocol/push/presence'
export { buildReceipt } from './protocol/push/receipt'
export type { BuildReceiptInput, FakeReceiptType } from './protocol/push/receipt'
export { generateFakePeerIdentity } from './protocol/signal/fake-peer-identity'
export type { FakePeerIdentity } from './protocol/signal/fake-peer-identity'
export { FakePeerDoubleRatchet } from './protocol/signal/fake-peer-double-ratchet'
export { FakeSenderKey } from './protocol/signal/fake-sender-key'
export type { FakeSenderKeyEncryptionResult } from './protocol/signal/fake-sender-key'
export {
    buildAdvSignedDeviceIdentity,
    generateFakePrimaryDevice
} from './protocol/auth/fake-primary-device'
export type {
    BuildAdvIdentityInput,
    BuildAdvIdentityResult,
    FakePrimaryDevice
} from './protocol/auth/fake-primary-device'
export {
    buildPairDeviceIq,
    buildPairSuccessIq,
    parsePairingQrString
} from './protocol/auth/pair-device'
export type {
    BuildPairDeviceIqInput,
    BuildPairSuccessIqInput,
    ParsedPairingQr
} from './protocol/auth/pair-device'
export { parsePreKeyUploadIq, PreKeyUploadParseError } from './protocol/signal/prekey-upload'
export type {
    ClientPreKeyBundle,
    ClientPreKeyEntry,
    ClientSignedPreKey
} from './protocol/signal/prekey-upload'
export {
    buildStreamErrorAck,
    buildStreamErrorCode,
    buildStreamErrorDeviceRemoved,
    buildStreamErrorReplaced,
    buildStreamErrorXmlNotWellFormed
} from './protocol/stream/stream-error'
