import { n as MsgContext } from "./templating-DqpRyvA4.js"; import { o as ChannelRouteRef } from "./channel-route-DUbOqcPC.js"; import { a as SessionEntry, n as GroupKeyResolution } from "./types-qvAUPWLC.js"; //#region src/channels/session.types.d.ts type InboundLastRouteUpdate = { sessionKey: string; channel: SessionEntry["lastChannel"]; to: string; accountId?: string; threadId?: string | number; route?: ChannelRouteRef; mainDmOwnerPin?: { ownerRecipient: string; senderRecipient: string; onSkip?: (params: { ownerRecipient: string; senderRecipient: string; }) => void; }; }; /** Function contract for recording inbound channel session state. */ type RecordInboundSession = (params: { storePath: string; sessionKey: string; ctx: MsgContext; groupResolution?: GroupKeyResolution | null; createIfMissing?: boolean; updateLastRoute?: InboundLastRouteUpdate; onRecordError: (err: unknown) => void; trackSessionMetaTask?: (task: Promise) => void; }) => Promise; //#endregion export { RecordInboundSession as n, InboundLastRouteUpdate as t };