import { type MarkitConversionCacheStatus } from "./markit-cache.js";
export interface MarkitConversionResult {
    content: string;
    ok: boolean;
    error?: string;
    cache?: MarkitConversionCacheStatus;
}
export interface MarkitFileConversionOptions {
    /**
     * Directory the PDF converter writes extracted images/diagrams into. When
     * set, each embedded image is rendered to `<id>.png` and referenced by path
     * in the markdown; when unset, markit emits an `<!-- image: <id> ... -->`
     * placeholder comment instead.
     */
    imageDir?: string;
}
export declare function convertFileWithMarkit(filePath: string, signal?: AbortSignal, options?: MarkitFileConversionOptions): Promise<MarkitConversionResult>;
export declare function convertBufferWithMarkit(buffer: Uint8Array, extension: string, signal?: AbortSignal, options?: {
    useCache?: boolean;
}): Promise<MarkitConversionResult>;
