import type { BackupServerAPI } from './types.js'; export type BackupTier = 'hourly' | 'daily' | 'weekly' | 'startup'; export interface BackupCompletedEvent { type: 'backup-completed'; tier: BackupTier; timestamp: string; localResult: 'success' | 'failure'; localError?: string; localBytes?: number; backupId?: string; cloudResult?: 'success' | 'failure' | 'skipped'; cloudError?: string; cloudTarget?: 'gdrive' | 'smb' | 'local'; freeBytes: number; totalBytes: number; nextScheduled: { hourly: string; daily: string; weekly: string; }; } interface DeltaEmitterState { app: BackupServerAPI; baseUrl: string; config: { emitSignalKDeltas: boolean; }; abortController: AbortController; metaEmitted: boolean; lastSuccessByTier: Map; activeNotifications: Set; reconnectTimer: NodeJS.Timeout | null; reconnectDelayMs: number; stopped: boolean; } export declare function startSignalKEmitter(app: BackupServerAPI, baseUrl: string, config: { emitSignalKDeltas: boolean; }): void; export declare function stopSignalKEmitter(): void; export declare function handleEvent(s: DeltaEmitterState, event: BackupCompletedEvent): void; export declare const __test_only__: { /** Inject a fresh state for tests; returns the test handle. */ bootstrap(app: BackupServerAPI): DeltaEmitterState; handleEvent: typeof handleEvent; STORAGE_LOW_WARN: number; STORAGE_LOW_ALERT: number; STORAGE_LOW_CLEAR: number; }; export {}; //# sourceMappingURL=signalk-deltas.d.ts.map