//#region src/types.d.ts interface MigrateOptions { styleFile?: string; cwd?: string; write?: boolean; tailwindCss?: string; workspaces?: boolean; force?: boolean; /** Extract unmatched media conditions into named `@custom-variant` * definitions in the Tailwind entry and rewrite consumers to stacked * variants. Enabled by default; pass `false` (CLI: * `--no-extract-media-queries`) to keep the arbitrary-variant * behavior. */ extractMediaQueries?: boolean; } interface MigrationWarning { code: string; file: string; /** Byte offsets into the authored file, or (0, 0) when no unique mapping exists. */ start: number; end: number; /** 1-based UTF-16 positions, omitted when no unique authored mapping exists. */ line?: number; column?: number; endLine?: number; endColumn?: number; message: string; } interface RuleReport { selector: string; status: "converted" | "retained"; candidates: string[]; file: string; /** Rule span in the analysis source (compiled CSS for preprocessor stylesheets). */ ruleId: RuleSpan; /** Rule span in the authored file, or (0, 0) when no unique mapping exists. */ authoredSpan: RuleSpan; } interface MigrationFailure { package: string; message: string; } interface MigrationReport { changedFiles: string[]; diff: string; convertedRules: number; retainedRules: number; rules: RuleReport[]; candidates: string[]; warnings: MigrationWarning[]; failures: MigrationFailure[]; } interface RuleSpan { start: number; end: number; } //#endregion //#region src/index.d.ts declare function migrate(options?: MigrateOptions): Promise; //#endregion export { type MigrateOptions, type MigrationFailure, type MigrationReport, type MigrationWarning, type RuleReport, migrate };