/** * Tailwind config loader for Babel plugin * Discovers and loads tailwind.config.* files from the project */ export type TailwindConfig = { theme?: { extend?: { colors?: Record>; fontFamily?: Record; fontSize?: Record; spacing?: Record; [key: string]: unknown; }; colors?: Record>; fontFamily?: Record; fontSize?: Record; spacing?: Record; [key: string]: unknown; }; }; /** * Check for unsupported theme extensions and warn the user * @internal Exported for testing */ export declare function warnUnsupportedThemeKeys(config: TailwindConfig, configPath: string): void; /** * Find tailwind.config.* file by traversing up from startDir */ export declare function findTailwindConfig(startDir: string): string | null; /** * Load and parse tailwind config file */ export declare function loadTailwindConfig(configPath: string): TailwindConfig | null; /** * Custom theme configuration extracted from tailwind.config */ export type CustomTheme = { colors: Record; fontFamily: Record; fontSize: Record; spacing: Record; }; /** * Extract all custom theme extensions from tailwind config * Prefers theme.extend.* over theme.* to avoid overriding defaults */ export declare function extractCustomTheme(filename: string): CustomTheme;