declare const STARTUP_RECOVERY_PROTOCOL_VERSION = 1; export type StartupRecoveryHealthCheckMode = 'auto' | 'manual'; export type StartupRecoveryAttempt = { hash: string; attemptId: string; }; export type StartupRecoverySnapshotAttempt = StartupRecoveryAttempt & { status: 'launching'; unacknowledgedLaunchCount: number; }; export type StartupRecoveryEvent = { id: string; failedHash: string; recoveryTarget: 'previous' | 'embedded'; recoveredHash?: string; crashCount: number; reason: 'crash_loop'; failedAt: number; }; export type StartupRecoveryState = { protocolVersion: typeof STARTUP_RECOVERY_PROTOCOL_VERSION; revision: number; phase: 'idle' | 'armed' | 'launching' | 'stable' | 'recovered'; candidateHash?: string; stableHash?: string; activeAttempt?: StartupRecoverySnapshotAttempt; policy?: { maxCrashCount: number; healthCheckMode: StartupRecoveryHealthCheckMode; healthyAfterSec: number; }; quarantinedHashes: string[]; pendingRecoveryEvents: StartupRecoveryEvent[]; }; export type StartupCandidateActivation = { hash: string; bundlePath: string; }; export type StartupRollbackResult = { rolledBack: boolean; toEmbedded: boolean; hash?: string; }; export declare function isBundleDropNativeAvailable(): boolean; export declare function isExpoOtaStartupEnabledNative(): boolean; export declare function isStartupRecoveryAvailableNative(): boolean; export declare function warnIfStartupRecoveryUnavailableNative(): void; export declare function getStartupRecoveryAttemptNative(): StartupRecoveryAttempt | null; /** * Hash selected for this exact React runtime. `undefined` means the installed * native adapter predates this constant; `null` means native selected embedded. */ export declare function getStartupRecoverySelectedHashNative(): string | null | undefined; export declare function activateStartupCandidateNative(hash: string, policy: { maxCrashCount: number; healthCheckMode: StartupRecoveryHealthCheckMode; healthyAfterSec: number; }): Promise; export declare function markStartupHealthyNative(attempt: StartupRecoveryAttempt): Promise; export declare function getStartupRecoveryStateNative(): Promise; export declare function setStartupRecoveryRevokedHashesNative(hashes: string[]): Promise; export declare function acknowledgeStartupRecoveryNative(eventId: string): Promise; export declare function rollbackStartupBundleNative(forceEmbedded: boolean): Promise; export declare function getDownloadedBundlePathNative(): Promise; export declare function restartReactNativeNative(): void; export declare function setOtaEnabledNative(enabled: boolean): Promise; export {};