Interface ProbeOfflineStorageBudgetOptions

interface ProbeOfflineStorageBudgetOptions {
    headroomRatio?: number;
    minimumReserveBytes?: number;
    now?: Date;
    storage?: OfflineStorageManagerLike;
}

Properties

headroomRatio?: number

Fraction of remaining space held in reserve. 0 to 1; defaults to 0.2.

minimumReserveBytes?: number

Reserve floor in bytes; defaults to 16 MiB. Clamped by remaining space.

now?: Date

Explicit clock input so a persisted probe result stays reproducible.

Defaults to navigator.storage. Inject for tests and non-browser hosts.