import { ThemeFlavor } from './theme-mapper.js'; /** * Gets all themes mapped to UI format. * Results are cached for performance. */ export declare function getThemes(): ThemeFlavor[]; /** * Gets a Set of all valid theme IDs. * Results are cached for performance. */ export declare function getValidThemeIds(): Set; /** * Resolves a theme by ID, falling back to default if not found. * * @param themeId - The theme ID to resolve * @returns The matching theme, default theme, or first available theme */ export declare function resolveTheme(themeId: string): ThemeFlavor | undefined; /** * Validates a theme ID for safety and format correctness. * * Accepts only alphanumeric characters, hyphens, and underscores. * Rejects special characters, unicode, and excessively long IDs. * * @param id - The value to validate as a theme ID * @returns True if the ID is valid, false otherwise */ export declare function isValidThemeId(id: unknown): boolean; /** * Sanitizes a theme ID by removing unsafe characters. * * Removes any characters that could cause DOM/CSS/XSS issues. * Used as a fallback when displaying potentially untrusted input. * * @param id - The theme ID to sanitize * @returns The sanitized ID containing only safe characters */ export declare function sanitizeThemeId(id: string): string; /** * Resets the cached themes. Used for testing. * @internal */ export declare function _resetThemeCache(): void; //# sourceMappingURL=theme-resolver.d.ts.map