import { BosswindConfig } from "../prop/bosswind/shared.cjs"; import { FontConfig } from "../fontsource/types.cjs"; //#region src/shared/types.d.ts type DebugValue = boolean | string | undefined; type CompileConfig = { spread?: boolean; stats?: false | 'quick' | 'detailed'; tempOutDir?: string; classNameStrategy?: false | 'hash' | 'shortest' | 'unicode'; }; type RuntimeConfig = { only?: boolean; strategy?: 'inline-first' | 'classname-first' | 'classic'; globals?: 'inline' | 'file' | 'none'; }; type FrameworkFileType = 'jsx' | 'unknown'; type FrameworkId = 'react' | 'preact' | 'solid' | 'qwik' | 'stencil' | 'unknown' | 'custom' | 'auto'; type FrameworkConfig = { name?: FrameworkId | 'auto'; className?: string; fileType?: FrameworkFileType; jsx?: { importSource?: string; runtimeModule?: string; typesModule?: string; typesNamespace?: string; elementType?: string; componentProps?: string; }; }; type AiConfig = { llms?: { enabled?: boolean; path?: string; }; skills?: { enabled?: boolean; outputDir?: string; includeBuiltins?: boolean; }; }; type UserConfig = { bosswind?: BosswindConfig; fonts?: FontConfig[]; breakpoints?: Record; compile?: CompileConfig; configDir?: string; debug?: DebugValue; content?: string | string[]; ai?: AiConfig; css?: { autoLoad?: boolean; boundaries?: { ignore?: string[]; criticality?: number; }; }; devServer?: { port?: number; autoStart?: boolean; }; folder?: string; framework?: FrameworkConfig | FrameworkId; jsx?: { globals?: boolean; }; nativeStyleProps?: string[]; plugins?: unknown[]; runtime?: RuntimeConfig; selectorPrefix?: string; selectorScope?: string; stylesheetPath?: string; tokens?: Record | ((valueMap: unknown) => Record); tokenPropGroups?: Record; unit?: string; }; type DictionaryItem = { property: string; description: string; values?: string[]; initial?: string; aliases: string[]; isCSSProp?: boolean; usage?: string; csstype?: unknown; single?: boolean; handler?: (options: { value: unknown; output: Record; contexts: string[]; }) => void; descriptor?: any; }; //#endregion export { DebugValue, DictionaryItem, FrameworkFileType, FrameworkId, UserConfig };