export { ThemeConfigSchema, type ThemeConfigJson, isValidThemeConfig, /** * Create a minimal theme template for users to start with. * Defined in shared-docx next to `ThemeConfigSchema` so every consumer * (CLI, playground) scaffolds from one schema-checked source. */ createMinimalTheme, } from '@json-to-office/shared-docx'; export { ThemeParser, ThemeValidationError, ThemeParseError } from './parser'; export { validateThemeJson, formatValidationErrors, type ValidationResult, } from './validator'; export { ThemeLoader, ThemeFileError } from './loader'; import type { ThemeConfigJson } from '@json-to-office/shared-docx'; /** * Load and parse a theme from a JSON string * @param jsonString - JSON string containing theme definition * @returns Promise - Parsed and validated theme configuration * @throws ThemeParseError - If JSON is malformed or invalid * @throws ThemeValidationError - If theme fails schema validation */ export declare function loadThemeFromJson(jsonString: string): Promise; /** * Load and parse a theme from a JSON file * @param filePath - Path to JSON file containing theme definition * @returns Promise - Parsed and validated theme configuration * @throws ThemeFileError - If file cannot be read or path is invalid * @throws ThemeParseError - If JSON is malformed or invalid * @throws ThemeValidationError - If theme fails schema validation */ export declare function loadThemeFromFile(filePath: string): Promise; /** * Export a theme configuration to JSON string * @param theme - Theme configuration to export * @param pretty - Whether to format JSON with indentation (default: true) * @returns string - Formatted JSON string */ export declare function exportThemeToJson(theme: ThemeConfigJson, pretty?: boolean): string; /** * Validate a JSON string against the theme schema without parsing * @param jsonString - JSON string to validate * @returns Validation result with success status and detailed errors */ export declare function validateThemeJsonString(jsonString: string): { valid: boolean; errors?: string[] | undefined; }; //# sourceMappingURL=index.d.ts.map