import { type StoredAgentHarnessSession } from "./store.js"; import type { AgentHarnessAdapter, AgentHarnessApproval, AgentHarnessCreateSessionOptions, AgentHarnessEvent, AgentHarnessSession } from "./types.js"; export type AgentHarnessLifecycleErrorCode = "not_found" | "owner_mismatch" | "approval_mismatch" | "unavailable" | "invalid_input"; export interface AgentHarnessLifecycleResult { ok: boolean; runId: string; session?: StoredAgentHarnessSession; events?: AgentHarnessEvent[]; idempotent?: boolean; rehydrated?: boolean; error?: string; errorCode?: AgentHarnessLifecycleErrorCode; } export interface AgentHarnessOwnerScope { ownerEmail: string | null; orgId?: string | null; } export declare function registerLiveAgentHarnessSession(input: { sessionId: string; adapter: AgentHarnessAdapter; session: AgentHarnessSession; createSession?: AgentHarnessCreateSessionOptions; ownerEmail?: string | null; orgId?: string | null; }): void; export declare function releaseLiveAgentHarnessSession(sessionId: string, session?: AgentHarnessSession): void; export declare function resolveAgentHarnessApproval(input: { runId: string; approval: AgentHarnessApproval; scope: AgentHarnessOwnerScope; onHarnessEvent?: (event: AgentHarnessEvent) => void | Promise; }): Promise; export declare function sendAgentHarnessFollowUp(input: { runId: string; prompt: string; scope: AgentHarnessOwnerScope; metadata?: Record; onHarnessEvent?: (event: AgentHarnessEvent) => void | Promise; }): Promise; export declare function stopLiveAgentHarnessSession(input: { sessionId: string; scope: AgentHarnessOwnerScope; }): Promise; export declare function sweepExpiredAgentHarnessSessions(now?: number): Promise; //# sourceMappingURL=lifecycle.d.ts.map