import type { Config as TailwindConfig } from "tailwindcss/types/config"; import Formatter from "./formatter"; import { type EndOfLine, type RuntimeConfig, type SortHtmlAttributes, type WrapAttributes } from "./runtimeConfig"; export type CLIOption = { write?: boolean; diff?: boolean; checkFormatted?: boolean; progress?: boolean; ignoreFilePath?: string; runtimeConfigPath?: string; }; export type FormatterOption = { indentSize?: number; wrapLineLength?: number; wrapAttributes?: WrapAttributes; wrapAttributesMinAttrs?: number; indentInnerHtml?: boolean; endWithNewline?: boolean; endOfLine?: EndOfLine; useTabs?: boolean; sortTailwindcssClasses?: true; tailwindcssConfigPath?: string; tailwindcssConfig?: TailwindConfig; sortHtmlAttributes?: SortHtmlAttributes; customHtmlAttributesOrder?: string[] | string; noMultipleEmptyLines?: boolean; noPhpSyntaxCheck?: boolean; noSingleQuote?: boolean; noTrailingCommaPhp?: boolean; extraLiners?: string[]; componentPrefix?: string[]; phpVersion?: string; }; export type BladeFormatterOption = CLIOption & FormatterOption; declare class BladeFormatter { diffs: any; errors: any; formattedFiles: any; ignoreFile: string; options: FormatterOption & CLIOption; outputs: any; currentTargetPath: string; paths: any; targetFiles: any; fulFillFiles: any; static targetFiles: any; runtimeConfigPath: string | null; runtimeConfigCache: RuntimeConfig; constructor(options?: BladeFormatterOption, paths?: any); format(content: any, opts?: BladeFormatterOption): Promise; formatFromCLI(): Promise; fileExists(filepath: string): any; readIgnoreFile(filePath: string): Promise; findTailwindConfig(filePath: string): Promise; readRuntimeConfig(filePath: string): Promise; handleConfigError(configFile: string, error: any): void; processPaths(): Promise; processPath(path: any): Promise; static globFiles(path: any): Promise; filterFiles(paths: any): Promise; static fulFillFiles(paths: any): Promise; formatFiles(paths: any): Promise; formatFile(path: any): Promise; checkFormatted(path: any, formatted: any): Promise; printFormattedOutput(path: any, formatted: any): void; writeToFile(path: any, content: any): void; handleError(path: any, error: any): void; printPreamble(): void; printResults(): Promise; printDescription(): void; printFormattedFiles(): void; printDifferences(): void; printErrors(): void; } export { BladeFormatter, Formatter };