import Database from 'better-sqlite3'; import type { Device, DeviceStatus, ExtendedDeviceInfo, LogEntry } from '../types/index.js'; export declare function initDatabase(dbPath: string): Database.Database; export declare function getDatabase(): Database.Database; export declare function closeDatabase(): void; export declare function upsertDevice(device: Omit & { createdAt?: number; }): Device; export declare function getDevice(id: string): Device | null; export declare function getAllDevices(): Device[]; export declare function updateDeviceStatus(id: string, status: DeviceStatus): boolean; export declare function updateDeviceLastSeen(id: string, timestamp?: number): boolean; export declare function updateDeviceExtendedInfo(id: string, info: ExtendedDeviceInfo): boolean; export declare function deleteDevice(id: string): boolean; export declare function addLog(deviceId: string, level: LogEntry['level'], message: string, data?: unknown): void; export declare function getDeviceLogs(deviceId: string, limit?: number): LogEntry[]; export declare function getAllLogs(limit?: number): LogEntry[]; //# sourceMappingURL=index.d.ts.map