
import { GeneratedPurgeCSSData } from "./purgeCSS.js";

//#region src/purger/legacy/purgeFromCode.d.ts
interface PurgeFromCodeResult {
  safelist: string[];
  imports: string[];
  components: string[];
  error?: string;
}
interface PurgeFromCodeOptions {
  colorModes?: ('dark' | 'light')[];
  variants: Record<string, Record<string, string>>;
  packageJson: Record<string, any>;
  generatedPurgeCssData: GeneratedPurgeCSSData;
}
/**
 * Run the legacy purger on a code string and return the safelist.
 * This uses the same logic as the CLI `uds purge` command but with in-memory files.
 *
 * @param code - The TypeScript/TSX code to analyze
 * @param options - Configuration options for color modes
 * @returns The purge result containing safelist, imports, and components
 */
declare function purgeFromCode(code: string, options: PurgeFromCodeOptions): PurgeFromCodeResult;
//#endregion
export { type PurgeFromCodeOptions, type PurgeFromCodeResult, purgeFromCode };
//# sourceMappingURL=purgeFromCode.d.ts.map