export interface TomlFileDiagnostics {
    label: string;
    path: string;
    resolvedPath: string;
    exists: boolean;
    isSymlink: boolean;
    isRegularFile: boolean;
    sizeBytes: number | null;
    mtimeMs: number | null;
    parseError: string | null;
    readError: string | null;
}
export interface TomlFileProbe {
    diagnostics: TomlFileDiagnostics;
    config: Record<string, unknown> | null;
    rawText: string;
}
interface WriteTomlFileInput {
    filePath: string;
    rawText: string;
    expectedMtime?: number;
    fileLabel?: string;
    dirMode?: number;
    fileMode?: number;
}
interface WriteTomlFileResult {
    mtime: number;
}
export declare class TomlFileValidationError extends Error {
    constructor(message: string);
}
export declare class TomlFileConflictError extends Error {
    readonly code = "CONFLICT";
    readonly mtime: number;
    constructor(message: string, mtime: number);
}
export declare function parseTomlObjectText(rawText: string, fieldName?: string): Record<string, unknown>;
export declare function stringifyTomlObject(config: Record<string, unknown>): string;
export declare function probeTomlObjectFile(filePath: string, label: string, displayPath: string): Promise<TomlFileProbe>;
export declare function writeTomlFileAtomic(input: WriteTomlFileInput): Promise<WriteTomlFileResult>;
export {};
//# sourceMappingURL=compatible-cli-toml-file-service.d.ts.map