import type { ApprovalPolicy, SessionApprovalPolicy } from '../../types/hitl/policy.js'; import type { TurnId } from '../../types/ids/index.js'; import type { SessionEventDraft } from './events.js'; /** * The turn's approval policy, as a box the turn reads through. * * Every call site that used to close over `params.resumeHandler` reads * `.current.handler` instead, which is the entire mechanism: a closure * captured at `query()` start cannot be changed without ending the turn, and * ending the turn to change one setting discards the in-flight step and the * context it was built from. `permissionMode` learned this first and is the * shape this follows. */ /** A policy that says yes to everything, named so a log can say so. */ export declare const AUTO_APPROVE_POLICY_NAME = "auto-approve"; export interface CreateSessionApprovalPolicyOptions { readonly turnId: TurnId; readonly initial: ApprovalPolicy; readonly emit: (event: SessionEventDraft) => Promise; } export declare function createSessionApprovalPolicy(options: CreateSessionApprovalPolicyOptions): SessionApprovalPolicy; //# sourceMappingURL=approval-policy.d.ts.map