export interface DeviceStatusRecord { deviceMac: string; deviceType: string; timestamp: number; context: Record; } /** * Simple local JSON file storage * Each device retains latest status + recent N history entries */ export declare class DeviceStore { private storePath; private latestPath; private historyPath; private maxHistoryPerDevice; private latest; private history; private dirty; private flushTimer; constructor(storeDir?: string, maxHistoryPerDevice?: number); /** * Record device status */ record(event: DeviceStatusRecord): void; /** * Get device latest status */ getLatest(deviceMac: string): DeviceStatusRecord | null; /** * Get all devices latest status */ getAllLatest(): DeviceStatusRecord[]; /** * Get device history records */ getHistory(deviceMac: string, limit?: number): DeviceStatusRecord[]; /** * Query by device type */ getByType(deviceType: string): DeviceStatusRecord[]; /** * List all known devices */ listDevices(): Array<{ deviceMac: string; deviceType: string; lastSeen: number; }>; /** * Export summary (for OpenClaw agent queries) */ getSummary(): string; /** * Flush to disk */ flush(): void; /** * Load from disk */ private load; /** * Destroy */ destroy(): void; } export declare function getDeviceStore(): DeviceStore; export declare function destroyDeviceStore(): void; //# sourceMappingURL=device-store.d.ts.map