//#region src/types.d.ts type Result = { ok: true; value: T; } | { ok: false; error: IconlyError; }; type IconlyErrorCode = 'container_invalid' | 'fetch_aborted' | 'fetch_failed' | 'indexeddb_not_supported' | 'indexeddb_open_failed' | 'indexeddb_request_failed' | 'parse_error' | 'storage_read_failed' | 'storage_unavailable' | 'storage_write_failed' | 'unexpected_error'; interface IconlyError { code: IconlyErrorCode; message: string; cause?: unknown; } interface Logger { debug?: (...messages: unknown[]) => void; error?: (...messages: unknown[]) => void; } interface IconRecord { version: string; data: string; } interface IconStorage { get(key: string): Promise>; set(record: IconRecord): Promise>; } interface IconlyInstance { init: () => Promise>; abort: () => void; } type StorageStrategy = 'indexeddb' | 'memory' | 'session' | IconStorage; type SvgSanitizer = (svg: string) => string; interface InsertSvgOptions { sanitize?: SvgSanitizer; } interface IconlyIcon { name: string; viewBox: string; body: string; } interface SpriteConfig { icons: IconlyIcon[]; container?: string | HTMLElement; sanitize?: SvgSanitizer; } interface SpriteInstance { render: () => Result; } interface IconlyConfig { file?: string; version?: string; debug?: boolean; container?: string | HTMLElement; storage?: StorageStrategy; dbName?: string; storeName?: string; sessionKeyPrefix?: string; sanitize?: SvgSanitizer; logger?: Logger; onError?: (error: IconlyError) => void; onDebug?: (...messages: unknown[]) => void; } //#endregion export { IconlyErrorCode as a, InsertSvgOptions as c, SpriteConfig as d, SpriteInstance as f, IconlyError as i, Logger as l, SvgSanitizer as m, IconStorage as n, IconlyIcon as o, StorageStrategy as p, IconlyConfig as r, IconlyInstance as s, IconRecord as t, Result as u }; //# sourceMappingURL=types-a_lKJX56.d.cts.map