export interface PiSessionRecoveryPolicySession {
    readonly messages: readonly PiRecoveryMessage[];
    readonly agent: {
        readonly state: {
            readonly errorMessage?: string | null;
        };
    };
    compact(): Promise<unknown>;
}
interface PiRecoveryMessage {
    readonly role: string;
    readonly stopReason?: string;
    readonly errorMessage?: string | null;
}
type PiSessionRecoveryPolicyId = "piCopilot413";
export interface PiSessionRecoveryResult {
    readonly applied: boolean;
    readonly policyId?: PiSessionRecoveryPolicyId;
}
export declare function applyPiSessionRecoveryPolicy(session: PiSessionRecoveryPolicySession): Promise<PiSessionRecoveryResult>;
export {};
//# sourceMappingURL=pi-session-recovery-policy.d.ts.map