import type { ApiContext } from "../../gateway/api.js"; import type { Session } from "../../shared/types.js"; import type { TalkControlAdapterContext, TalkControlExecution } from "./types.js"; interface DelegateEmployee { name: string; department: string | null; engine: string; model?: string; effortLevel?: string; } export interface TalkDelegationInput { context: ApiContext; sourceSessionId: string; todoId: string; prompt: string; employee: DelegateEmployee; call: TalkControlAdapterContext; } interface ClaimedDelegation { session: Session; queueItemId: string; replayed: boolean; } /** * Claim the delegation's session, Todo link, visible prompt, and queued turn in * one SQLite transaction. A retry repairs a pre-existing incomplete session; * only the durable queue winner is dispatched after commit. */ export declare function claimTalkDelegation(input: TalkDelegationInput): ClaimedDelegation; export declare function delegateTodoWithTalk(input: TalkDelegationInput): TalkControlExecution; export {}; //# sourceMappingURL=delegation-adapter.d.ts.map