import type { StorageState } from "../core/types.js"; export interface Storage { getDataPath(): string; isAvailable(): Promise; save(state: StorageState): Promise; load(): Promise; moveToBackup(): Promise; loadBackup(): Promise; /** Save a rolling backup of state with a local timestamp filename. Prunes oldest if over limit. */ saveRollingBackup(state: StorageState, maxBackups: number): Promise; }