import type { AiUsageModel } from '../usage/types.js'; export interface ExecutionAuthority { revision: string; unrestrictedTools: boolean; assertCurrent(): void; allowsTool(name: string): boolean; assertTool?(name: string, args: unknown): void; reserveModel(model: AiUsageModel): void; } export declare const getExecutionAuthority: () => ExecutionAuthority | undefined; /** Trusted execution entry points may only narrow a parent authority. */ export declare function withExecutionAuthority(value: ExecutionAuthority, execute: () => T): T;