/**
 * @fileoverview Session lifecycle audit types.
 *
 * Types for the append-only JSONL audit log at `~/.codeman/session-lifecycle.jsonl`.
 * Records session creation, PTY launch/exit, server start/stop, tmux recovery,
 * and QR auth events. Written by `SessionLifecycleLog`, read for debugging.
 *
 * Key exports:
 * - LifecycleEventType — union of 11 event types (created, started, exit, qr_auth, etc.)
 * - LifecycleEntry — a single timestamped log entry with event, sessionId, and optional metadata
 *
 * No dependencies on other domain modules. LifecycleEntry.sessionId links
 * back to SessionState.id for correlation.
 */
/** Types of session lifecycle events recorded to the audit log */
export type LifecycleEventType = 'created' | 'started' | 'exit' | 'deleted' | 'detached' | 'recovered' | 'stale_cleaned' | 'mux_died' | 'server_started' | 'server_stopped' | 'qr_auth';
/** A single entry in the session lifecycle audit log */
export interface LifecycleEntry {
    ts: number;
    event: LifecycleEventType;
    sessionId: string;
    name?: string;
    mode?: string;
    reason?: string;
    exitCode?: number | null;
    extra?: Record<string, unknown>;
}
//# sourceMappingURL=lifecycle.d.ts.map