import { type SessionQuestion, type SessionQuestionVerifier } from '@dharma-ai-labs/agent-fabric-contracts'; import type { LocalProviderSessionIdentity, LocalVault, ScopedLocalVault } from '@dharma-ai-labs/agent-fabric-local-vault'; import { createProviderSessionChannel } from './providerSessionChannel.js'; export interface CooperativeSessionContext { provider: 'codex'; sessionId: string; workspaceRoot: string; active: boolean; } export declare function openCooperativeInboxSession(input: { vault: LocalVault | ScopedLocalVault; bindingId: string; identity: LocalProviderSessionIdentity; currentSession(): Promise; channelTransport: Parameters[0]['transport']; verifier: SessionQuestionVerifier; budget: { reserve(input: { questionId: string; maximumCostCents: number; }): Promise; }; authorizeContent: Parameters[0]['authorizeContent']; }): Promise<{ close: () => Promise<{ serverDetached: boolean; consumerClosed: true; }>; retire(): Promise<{ serverDetached: boolean; consumerClosed: true; }>; runNext(answerInCurrentSession: (offer: SessionQuestion) => Promise): Promise<{ questionId: string; taskId: string; targetBindingId: string; state: "queued" | "accepted" | "answered" | "failed"; replay: boolean; correlationId: string; } | { blocker?: import("./namedPeerContentAuthorization.js").NamedPeerContentBlocker | undefined; state: "reply_pending"; questionId: string; taskId: string; completionHash: string; reasonCode: "receipt_invalid" | "content_or_contract_blocked" | "delivery_unconfirmed"; dispositionHash?: undefined; delivered?: undefined; replyReceiptHash?: undefined; correlationId?: undefined; } | { state: "reply_quarantined"; questionId: string; taskId: string; completionHash: string; dispositionHash: string; reasonCode: "question_expired"; delivered: false; replyReceiptHash?: undefined; correlationId?: undefined; } | { state: "reply_pending"; questionId: string; taskId: string; completionHash: string; reasonCode: "answer_conflict" | "remote_not_answered"; dispositionHash?: undefined; delivered?: undefined; replyReceiptHash?: undefined; correlationId?: undefined; } | { state: "reply_reconciled"; questionId: string; taskId: string; completionHash: string; replyReceiptHash: string; correlationId: string; dispositionHash?: undefined; reasonCode?: undefined; delivered?: undefined; } | { state: "idle"; questionId?: undefined; taskId?: undefined; completionHash?: undefined; } | { state: "budget_denied"; questionId: string; taskId: string; completionHash?: undefined; } | { completionHash: string; questionId: string; taskId: string; targetBindingId: string; state: "queued" | "accepted" | "answered" | "failed"; replay: boolean; correlationId: string; } | { state: "reply_pending"; questionId: string; taskId: string; completionHash: string; }>; }>; //# sourceMappingURL=cooperativeInboxSession.d.ts.map