import { t as ChannelId } from "./channel-id.types-B_AcMzNT.js"; import { t as ChannelPairingAdapter } from "./pairing.types-BWE6gvH4.js"; import { n as PluginRuntime } from "./types-yybOtwsl.js"; import { m as issuePairingChallenge } from "./pairing-store-8ibUob_c.js"; //#region src/channels/plugins/pairing-adapters.d.ts type PairingNotifyParams = Parameters>[0]; declare function createPairingPrefixStripper(prefixRe: RegExp, map?: (entry: string) => string): NonNullable; declare function createLoggedPairingApprovalNotifier(format: string | ((params: PairingNotifyParams) => string), log?: (message: string) => void): NonNullable; declare function createTextPairingAdapter(params: { idLabel: string; message: string; normalizeAllowEntry?: ChannelPairingAdapter["normalizeAllowEntry"]; notify: (params: PairingNotifyParams & { message: string; }) => Promise | void; }): ChannelPairingAdapter; //#endregion //#region src/plugin-sdk/pairing-access.d.ts type PairingApi = PluginRuntime["channel"]["pairing"]; type ScopedUpsertInput = Omit[0], "channel" | "accountId">; /** Scope pairing store operations to one channel/account pair for plugin-facing helpers. */ declare function createScopedPairingAccess(params: { core: PluginRuntime; channel: ChannelId; accountId: string; }): { accountId: string; readAllowFromStore: () => Promise; readStoreForDmPolicy: (provider: ChannelId, accountId: string) => Promise; upsertPairingRequest: (input: ScopedUpsertInput) => Promise<{ code: string; created: boolean; }>; }; //#endregion //#region src/plugin-sdk/channel-pairing.d.ts type ScopedPairingAccess = ReturnType; /** Pairing helpers scoped to one channel account. */ type ChannelPairingController = ScopedPairingAccess & { issueChallenge: (params: Omit[0], "channel" | "upsertPairingRequest">) => ReturnType; }; /** Pre-bind the channel id and storage sink for pairing challenges. */ declare function createChannelPairingChallengeIssuer(params: { channel: ChannelId; upsertPairingRequest: Parameters[0]["upsertPairingRequest"]; }): (challenge: Omit[0], "channel" | "upsertPairingRequest">) => Promise<{ created: boolean; code?: string; }>; /** Build the full scoped pairing controller used by channel runtime code. */ declare function createChannelPairingController(params: { core: PluginRuntime; channel: ChannelId; accountId: string; }): ChannelPairingController; //#endregion export { createPairingPrefixStripper as a, createLoggedPairingApprovalNotifier as i, createChannelPairingChallengeIssuer as n, createTextPairingAdapter as o, createChannelPairingController as r, ChannelPairingController as t };