export interface OxcFileAccessor {
    exists(path: string): boolean;
    readText(path: string): string | null;
}
export interface ResolvedOxcConfig {
    formatterConfigPath: string | null;
    formatterConfigText: string | null;
    linterConfigPath: string | null;
    linterConfigText: string | null;
}
export interface OxcDiagnostic {
    severity: "error" | "warning" | "info";
    message: string;
    start: number;
    end: number;
    helpMessage: string | null;
}
export interface RunOxcOnSourceOptions {
    filePath: string;
    sourceText: string;
    format?: boolean;
    lint?: boolean;
    formatterConfigText?: string | null;
    linterConfigText?: string | null;
}
export interface RunOxcOnSourceResult {
    formattedText: string | null;
    diagnostics: OxcDiagnostic[];
}
export declare function isSupportedOxcPath(filePath: string): boolean;
export declare function resolveOxcParserExtension(filePath: string): string;
export declare function resolveOxcConfigForFile(accessor: OxcFileAccessor, filePath: string): ResolvedOxcConfig;
export declare function formatOxcDiagnosticsForTerminal(filePath: string, sourceText: string, diagnostics: OxcDiagnostic[]): string;
export declare function runOxcOnSource(options: RunOxcOnSourceOptions): Promise<RunOxcOnSourceResult>;
//# sourceMappingURL=runtime.d.ts.map