import type { TrackEndpoints, WebsiteTrackBackendEvent } from "./index.js"; export type StorageProvider = { push(value: OfflineEvent): Promise | void; pop(): Promise | null> | OfflineEvent | null | undefined; }; export type OfflineEvent = { timestamp: number; websiteId: string; endpoint: TrackEndpoints; data: T; }; export type OfflineMode = { checkOnline: () => Promise | boolean; storage?: StorageProvider; }; export declare class MemoryStorageProvider implements StorageProvider { private readonly events; push(value: OfflineEvent): void; pop(): OfflineEvent | null; } //# sourceMappingURL=offline.d.ts.map