import type { AgentTool, BeforeToolCallContext } from '@earendil-works/pi-agent-core'; import type { AgentTurnPolicyOptions } from './agent-turn-policy.js'; interface DelegationScope { tools: AgentTool[]; restrictToWorkspace?: boolean; authorizeToolCall?: AgentTurnPolicyOptions['authorizeToolCall']; getToolContext?: () => Pick | undefined; } export declare function withoutDelegationScope(run: () => T): T; export declare function withDelegationScope(scope: DelegationScope, run: () => T): T; export declare function getDelegationScope(): DelegationScope | undefined; export {};