import { t as ChannelPairingAdapter } from "./pairing.types-BXdVg_20.js"; import { t as PairingChannel } from "./pairing-store.types-BTVzEeHr.js"; //#region src/pairing/pairing-store.d.ts type PairingRequest = { id: string; code: string; createdAt: string; lastSeenAt: string; meta?: Record; }; declare function resolveChannelAllowFromPath(channel: PairingChannel, env?: NodeJS.ProcessEnv, accountId?: string): string; declare function readLegacyChannelAllowFromStore(channel: PairingChannel, env?: NodeJS.ProcessEnv): Promise; declare function readChannelAllowFromStore(channel: PairingChannel, env?: NodeJS.ProcessEnv, accountId?: string): Promise; declare function readLegacyChannelAllowFromStoreSync(channel: PairingChannel, env?: NodeJS.ProcessEnv): string[]; declare function readChannelAllowFromStoreSync(channel: PairingChannel, env?: NodeJS.ProcessEnv, accountId?: string): string[]; declare function clearPairingAllowFromReadCacheForTest(): void; type AllowFromStoreEntryUpdateParams = { channel: PairingChannel; entry: string | number; accountId?: string; env?: NodeJS.ProcessEnv; pairingAdapter?: ChannelPairingAdapter; }; declare function addChannelAllowFromStoreEntry(params: AllowFromStoreEntryUpdateParams): Promise<{ changed: boolean; allowFrom: string[]; }>; declare function removeChannelAllowFromStoreEntry(params: AllowFromStoreEntryUpdateParams): Promise<{ changed: boolean; allowFrom: string[]; }>; declare function listChannelPairingRequests(channel: PairingChannel, env?: NodeJS.ProcessEnv, accountId?: string): Promise; declare function upsertChannelPairingRequest(params: { channel: PairingChannel; id: string | number; accountId: string; meta?: Record; env?: NodeJS.ProcessEnv; /** Extension channels can pass their adapter directly to bypass registry lookup. */ pairingAdapter?: ChannelPairingAdapter; }): Promise<{ code: string; created: boolean; }>; declare function approveChannelPairingCode(params: { channel: PairingChannel; code: string; accountId?: string; env?: NodeJS.ProcessEnv; pairingAdapter?: ChannelPairingAdapter; }): Promise<{ id: string; entry?: PairingRequest; } | null>; //#endregion //#region src/pairing/pairing-challenge.d.ts type PairingMeta = Record; type PairingChallengeParams = { channel: string; senderId: string; senderIdLine: string; meta?: PairingMeta; upsertPairingRequest: (params: { id: string; meta?: PairingMeta; }) => Promise<{ code: string; created: boolean; }>; sendPairingReply: (text: string) => Promise; buildReplyText?: (params: { code: string; senderIdLine: string; }) => string; onCreated?: (params: { code: string; }) => void; onReplyError?: (err: unknown) => void; }; /** * Shared pairing challenge issuance for DM pairing policy pathways. * Ensures every channel follows the same create-if-missing + reply flow. */ declare function issuePairingChallenge(params: PairingChallengeParams): Promise<{ created: boolean; code?: string; }>; //#endregion export { approveChannelPairingCode as a, readChannelAllowFromStore as c, readLegacyChannelAllowFromStoreSync as d, removeChannelAllowFromStoreEntry as f, addChannelAllowFromStoreEntry as i, readChannelAllowFromStoreSync as l, upsertChannelPairingRequest as m, issuePairingChallenge as n, clearPairingAllowFromReadCacheForTest as o, resolveChannelAllowFromPath as p, PairingRequest as r, listChannelPairingRequests as s, PairingChallengeParams as t, readLegacyChannelAllowFromStore as u };