import type { TransformResolver } from './evaluation/module.mjs'; import type { EvalRule, TransformPerfIssue } from './evaluation/types.mjs'; import { type CSSRulesByBucket } from '@griffel/core'; import type { AstEvaluatorPlugin } from './evaluation/types.mjs'; import type { TransformMetadata } from './types.mjs'; export type TransformOptions = { filename: string; /** Custom module resolver used to resolve imports inside evaluated modules. */ resolveModule: TransformResolver; classNameHashSalt?: string; /** * Returns the evaluated CSS rules in the file result metadata * @default false */ generateMetadata?: boolean; /** Defines set of modules and imports handled by a transformPlugin. */ importsToTransform?: string[]; /** Defines the set of function names that should be treated as Griffel style calls. */ functionsToTransform?: FunctionKinds[]; /** The set of rules that defines how the matched files will be transformed during the evaluation. */ evaluationRules?: EvalRule[]; /** Plugins for extending AST evaluation with custom node handling. */ astEvaluationPlugins?: AstEvaluatorPlugin[]; /** * Collects performance issues (CJS modules, barrel re-exports) during evaluation. * @default false */ collectPerfIssues?: boolean; }; export type TransformResult = { code: string; cssRulesByBucket?: CSSRulesByBucket; usedProcessing: boolean; usedVMForEvaluation: boolean; perfIssues?: TransformPerfIssue[]; metadata?: TransformMetadata; }; type FunctionKinds = 'makeStyles' | 'makeResetStyles' | 'makeStaticStyles'; /** * Transforms passed source code with oxc-parser and oxc-walker instead of Babel. */ export declare function transformSync(sourceCode: string, options: TransformOptions): TransformResult; export {};