export interface GracefulShutdownPlan {
    terminateSdkSessions: boolean;
    closePtySessions: boolean;
    terminateResidualProcesses: boolean;
    unregisterInstance: boolean;
    clearPersistedSessions: boolean;
}
/**
 * Build shutdown side-effect policy from the requested restart mode.
 * Main flow: explicit bridge shutdown cleans resources; scheduler restart keeps
 * SDK/PTY processes and persisted metadata so the scheduler can restore state.
 */
export declare function buildGracefulShutdownPlan(preserveSessions: boolean): GracefulShutdownPlan;
/**
 * Decide whether startup may destructively clean persisted runtime sessions.
 * Main flow: default bridge restart is non-destructive; operators can opt into
 * legacy cleanup with AWS_BRIDGE_CLEAN_ORPHANS_ON_STARTUP=true.
 */
export declare function shouldCleanupPersistedSessionsOnStartup(preserveSessions: boolean, env?: NodeJS.ProcessEnv): boolean;
/**
 * Decide whether background orphan monitoring may terminate persisted sessions.
 * Main flow: process termination is an explicit cleanup action, not a default
 * monitoring behavior, so restart recovery cannot be undone by auto-clean mode.
 */
export declare function shouldAutoCleanOrphanProcesses(env?: NodeJS.ProcessEnv): boolean;
//# sourceMappingURL=runtime-lifecycle-policy.d.ts.map