/** * Build-time transformation utility */ export function buildTimeTransform(cssText: any, options?: {}): { nativeCSS: string; runtimeCSS: string; hasRuntimeRules: boolean; stats: { totalRules: number; transformedRules: any; }; }; /** * Extract @result blocks from a mixin body */ export function extractResultBlocks(body: any): any[]; /** * Find @apply rules within a rule body text. * Returns an array of { start, end, name, args, contentsBlock } */ export function findApplyRules(bodyText: any): { start: any; end: any; name: string; args: any[]; contentsBlock: any; }[]; /** * Parse CSS rules with proper handling of nested structures */ export function parseCSSRules(cssText: any): string[]; /** * Parse a @macro definition from its rule text * Returns { type, name, params, body } or null if invalid */ export function parseMacroDefinition(ruleText: any): { type: string; name: any; params: never[]; body: any; } | null; /** * Parse a @mixin definition from its rule text * Returns { type, name, params, body, resultBlocks } or null if invalid */ export function parseMixinDefinition(ruleText: any): { type: string; name: any; params: { name: any; defaultValue: any; }[]; body: any; resultBlocks: any[]; } | null; /** * Process @apply rules within a body text, substituting mixin/macro content */ export function processApplyInBody(bodyText: any, definitions: any): any; /** * Runtime transformation utility (for integration with the browser polyfill) */ export function runtimeTransform(cssText: any, element: any): { processedCSS: string; hasRuntimeRules: boolean; nativeCSS: string; }; /** * Substitute @contents rules in body text with the provided contents block */ export function substituteContents(body: any, contentsBlock: any): any; /** * Substitute mixin parameters into the result body. * Replaces var(--paramName) with the argument value or default. */ export function substituteParams(body: any, params: any, args: any): any; /** * Transform CSS text containing @mixin/@macro/@apply into native CSS */ export function transformToNativeCSS(cssText: any): { nativeCSS: string; runtimeCSS: string; hasRuntimeRules: boolean; stats: { totalRules: number; transformedRules: any; }; };