//#region src/storage/storage-types.d.ts /** * Type definitions for the Storage service — mirrors * `helper::Storage` types from esp-brookesia. * * @module */ /** Allowed KV value types (matches `FunctionValueType` Boolean/Number/String). */ type StorageValue = boolean | number | string; /** Key-value map returned by KVGet / passed to KVSet. */ type StorageKeyValueMap = Record; /** Discriminant returned by KVList (`helper::Storage::ValueType`). */ type StorageValueType = 'Bool' | 'Int' | 'String'; /** Single entry returned by KVList. */ type StorageEntryInfo = { nspace: string; key: string; type: StorageValueType; }; /** FileSystemType discriminant (`hal::storage::FileSystemIface::FileSystemType`). */ type FileSystemType = 'LittleFS' | 'FATFS' | 'SPIFFS'; /** MediumType discriminant (`hal::storage::FileSystemIface::MediumType`). */ type MediumType = 'Flash' | 'SDCard' | 'Ram'; /** Mounted file system info returned by GetFileSystems. */ type FileSystemInfo = { fs_type: FileSystemType; medium_type: MediumType; mount_point: string; supports_directories: boolean; }; /** File system capacity returned by GetFileSystemCapacity. */ type FileSystemCapacity = { total_bytes: number; used_bytes: number; free_bytes: number; }; /** KV name result returned by MakeKVKey / MakeKVNamespace. */ type KvNameResult = { name: string; original_name: string; hashed: boolean; warning: string; }; /** File type discriminant (`helper::Storage::FileType`). */ type FileType = 'Missing' | 'File' | 'Directory' | 'Other'; /** File system entry info returned by FSStat. */ type FileInfo = { type: FileType; size: number; mtime_ms: number; exists: boolean; }; /** File entry returned by FSList. */ type FileEntry = { name: string; info: FileInfo; }; //#endregion export { FileSystemType as a, StorageEntryInfo as c, StorageValueType as d, FileSystemInfo as i, StorageKeyValueMap as l, FileInfo as n, KvNameResult as o, FileSystemCapacity as r, MediumType as s, FileEntry as t, StorageValue as u }; //# sourceMappingURL=storage-types-D8S9NX-i.d.mts.map