/** * The **Theme Importer** — parses a theme from JSON text or an object, validates * every variable against the registry, and returns a clean {@link GeneratedTheme}. * It is strict: an import with any unknown variable or malformed/unsafe value is * rejected wholesale, so a hand-edited or hostile file can never be applied. * * @packageDocumentation */ import type { GeneratedTheme } from '../../types/theme-ai.types'; import type { ThemeValidator } from './theme-validator'; /** Validates and normalizes externally-supplied themes. */ export declare class ThemeImporter { private readonly validator; constructor(validator: ThemeValidator); /** * Parse + validate a theme from JSON text or an object. * @throws {@link PhotonThemeError} on invalid JSON, wrong shape, or any * rejected variable. */ import(source: string | GeneratedTheme): GeneratedTheme; } //# sourceMappingURL=theme-importer.d.ts.map