import type { SimulatorStore } from './contracts.js'; import type { DeviceCollection, DeviceCollectionRepository, DeviceRecords, DeviceMetadata, DeviceSummary } from './deviceData.js'; /** A host owns persistence, revision conflicts, requests and error reporting. */ export interface DeviceStore { data: DeviceMetadata | null; counts?: DeviceSummary['counts']; error: string; busy: boolean; reload: () => Promise; page: DeviceCollectionRepository['page']; get: DeviceCollectionRepository['get']; save: (metadata: DeviceMetadata) => Promise; put: (collection: K, record: DeviceRecords[K]) => Promise; remove: (collection: DeviceCollection, id: string) => Promise; folder: (from: string | null, to: string | null, destination: string) => Promise; exportBackup: () => Promise; restore: (state: SimulatorStore) => Promise; } //# sourceMappingURL=store.d.ts.map