import type { Companion, PartnerState } from '../domain.js'; import type { PartnerStore } from '../store.js'; export interface CompanionRuntimePolicy { readonly roleChat: boolean; readonly rules: Readonly<{ taskPreamble: boolean; completionRecovery: boolean; forceBackground: boolean; personaDelivery: boolean; autoChildCleanup: boolean; }>; readonly companion: Companion; allowsTool(name: string): boolean; } export declare function roleChatPolicy(source: Pick): { roleChat: boolean; rules: Readonly<{ taskPreamble: boolean; completionRecovery: boolean; forceBackground: boolean; personaDelivery: boolean; autoChildCleanup: boolean; }>; }; export declare function projectRuntimeCompanion(source: Companion, roleChat: boolean): Companion; export declare function resolveCompanionRuntimePolicy(source: Companion): CompanionRuntimePolicy; /** Real stores compile at commit time; fixtures may resolve from their own current state. */ export declare function runtimePolicy(store: Pick & Partial>, owner: string): CompanionRuntimePolicy | undefined; export declare function runtimeState(state: PartnerState, policyFor?: (id: string) => CompanionRuntimePolicy | undefined): PartnerState; export declare function runtimeSnapshot(store: PartnerStore): PartnerState; export declare function runtimeSessionPolicy(store: PartnerStore, sessionId: string): CompanionRuntimePolicy | undefined; //# sourceMappingURL=runtime-policy.d.ts.map