export declare const SETUP_RESUME_METADATA_KEY = "agentNativeResumeAfterSetup"; export declare const SETUP_RESUME_OF_RUN_METADATA_KEY = "agentNativeRecoveryOfRunId"; /** The refused run a request resumes after AI setup, if it is such a resume. */ export declare function setupResumeRefusedRunId(body: { metadata?: unknown; }): string | undefined; export interface SetupResumeClaim { /** Gives the claim back if this request is not admitted; only ever our own. */ release(): Promise; } /** * The claim for the first resume of a refused run (also for that same turn * again), or null when another turn already holds it. A request that is then * refused admission releases it, so a later resend is not told it went out. */ export declare function claimSetupResume(opts: { ownerEmail: string; threadId: string; refusedRunId: string; turnId: string; }): Promise;