export declare const NOTIFY_FALLBACK_SCHEMA_VERSION = 1; export declare const NOTIFY_FALLBACK_LEASE_MS = 30000; export declare const NOTIFY_FALLBACK_RETRY_DELAY_MS = 250; export declare const NOTIFY_FALLBACK_RETENTION_MS: number; export declare const NOTIFY_FALLBACK_FUTURE_SKEW_MS: number; type WatcherMode = 'persistent' | 'once'; export type FallbackDeliveryResult = { kind: 'acquired_effect'; attempt: 1 | 2; } | { kind: 'active_skip'; reason: string; } | { kind: 'retry_eligible'; reason: string; } | { kind: 'terminal_delivered' | 'terminal_ambiguous' | 'terminal_failed'; attempt: 1 | 2; } | { kind: 'invalid_skip' | 'io_skip' | 'deadline_skip'; reason: string; }; export interface HookSpawnResult { spawned: boolean; childPid?: number | null; status?: number | null; signal?: string | null; error?: unknown; timedOut?: boolean; terminationUnconfirmed?: boolean; authorityDeadline?: boolean; } export interface FallbackDeliveryOptions { stateDir: string; threadId: string; turnId: string; eventTimestampMs: number; rolloutPath: string; watcherMode: WatcherMode; deadlineAtMs: number; now?: () => number; stopping?: () => boolean; spawnHook: () => Promise; } export declare function deliverNotifyFallback(options: FallbackDeliveryOptions): Promise; export declare function compactNotifyFallbackDeliveries(stateDir: string, now?: number): Promise; export {}; //# sourceMappingURL=notify-fallback-delivery.d.ts.map