import { FileType, FileType as FileType$1 } from "@kitschpatrol/prettier-config";

//#region src/api.d.ts
/**
 * Fix a source string by running all shared-config tools in sequence: Mdat →
 * ESLint → Stylelint → Prettier. Each tool silently skips content it doesn't
 * understand.
 *
 * @param source - The source code to fix.
 * @param fileType - A file extension (e.g. `'ts'`, `'css'`, `'md'`) or virtual
 *   filepath for parser inference. Defaults to `'ts'`.
 *
 * @returns The fixed source string.
 */
declare function fix(source: string, fileType?: FileType$1): Promise<string>;
/**
 * Fix a file in place by running all shared-config tools in sequence: Mdat →
 * ESLint → Stylelint → Prettier. Each tool silently skips content it doesn't
 * understand.
 *
 * @param filePath - Path to the file to fix.
 */
declare function fixFile(filePath: string): Promise<void>;
/**
 * Clear all cached tool modules and instances. Subsequent calls to `fix` or
 * `fixFile` will re-import all tools.
 */
declare function clearCache(): void;
//#endregion
export { type FileType, clearCache, fix, fixFile };