/**
 * APS v2 Emergency Pathways
 * Pre-authorized emergency protocols defined at delegation time.
 * Agent does NOT decide what's an emergency — delegator defines conditions in advance.
 */
import type { PolicyContext, ConditionSet, V2ScopeDefinition, AssuranceClass, ActivationStatus } from './types.js';
export interface V2EmergencyPathway {
    id: string;
    delegation_ref: string;
    trigger_conditions: ConditionSet;
    expanded_scope: V2ScopeDefinition;
    max_duration: string;
    mandatory_review_deadline: string;
    review_authority: string;
    description: string;
    policy_context: PolicyContext;
    delegator_signature: string;
    assurance_class: AssuranceClass;
}
export interface V2EmergencyActivation {
    id: string;
    pathway_id: string;
    agent_id: string;
    trigger_evidence: string;
    activated_at: string;
    expires_at: string;
    review_deadline: string;
    actions_during_emergency: string[];
    status: ActivationStatus;
    review_outcome: string | null;
    review_signature: string | null;
    agent_signature: string;
    policy_context: PolicyContext;
    assurance_class: AssuranceClass;
}
export declare function getV2Pathway(id: string): V2EmergencyPathway | undefined;
export declare function getV2PathwaysForDelegation(delRef: string): V2EmergencyPathway[];
export declare function getV2Activation(id: string): V2EmergencyActivation | undefined;
export declare function getV2ActiveEmergencies(agentId: string): V2EmergencyActivation[];
export declare function defineV2EmergencyPathway(params: {
    delegation_ref: string;
    trigger_conditions: ConditionSet;
    expanded_scope: V2ScopeDefinition;
    max_duration: string;
    mandatory_review_deadline: string;
    review_authority: string;
    description: string;
    policy_context: PolicyContext;
    delegator_private_key: string;
}): V2EmergencyPathway;
export declare function activateV2Emergency(params: {
    pathway_id: string;
    agent_id: string;
    trigger_evidence: string;
    agent_private_key: string;
    policy_context: PolicyContext;
}): V2EmergencyActivation;
export declare function logV2EmergencyAction(activationId: string, actionId: string): void;
export declare function reviewV2Emergency(params: {
    activation_id: string;
    reviewer_id: string;
    outcome: 'justified' | 'unjustified' | 'ambiguous';
    review_notes: string;
    reviewer_private_key: string;
}): V2EmergencyActivation;
export declare function getV2OverdueReviews(): V2EmergencyActivation[];
export declare function clearV2EmergencyStores(): void;
//# sourceMappingURL=emergency-v2.d.ts.map