/**
 * Control State Module
 *
 * Manages global control state for the ShieldCortex system.
 * Handles pause/resume for memory creation and kill switch lockdown.
 *
 * Kill switch is a stronger state than pause — it blocks ALL operations
 * except forensic tools (audit, status, scan, resume).
 */
export type ControlMode = 'active' | 'paused' | 'kill_switch';
export type OperationKind = 'memory_read' | 'memory_write' | 'graph' | 'consolidation' | 'config' | 'status' | 'audit' | 'scan' | 'resume' | 'emergency_stop';
export interface KillSwitchMeta {
    triggeredAt: string;
    source: 'kill_phrase' | 'manual' | 'mcp_tool';
    phrase?: string;
    reason?: string;
    sourceIdentifier?: string;
    memoryCountAtTrigger?: number;
}
export declare class KillSwitchError extends Error {
    meta: KillSwitchMeta | null;
    constructor(meta: KillSwitchMeta | null);
}
export declare function isPaused(): boolean;
export declare function pause(): void;
export declare function resume(): void;
export declare function isKillSwitchActive(): boolean;
export declare function getKillSwitchMeta(): KillSwitchMeta | null;
export declare function activateKillSwitch(meta: Omit<KillSwitchMeta, 'triggeredAt'>): void;
export declare function deactivateKillSwitch(reason: string): void;
/**
 * Assert that an operation is allowed under the current control mode.
 * Throws KillSwitchError if the operation is blocked.
 */
export declare function assertOperationAllowed(kind: OperationKind): void;
export declare function getControlStatus(): {
    mode: ControlMode;
    paused: boolean;
    killSwitchActive: boolean;
    killSwitchMeta: KillSwitchMeta | null;
    uptime: number;
    uptimeFormatted: string;
};
/** Force the next gated read to re-query the control_state row (bypass TTL). */
export declare function __refreshControlStateForTest(): void;
