export interface MarkitConversionResult {
    content: string;
    ok: boolean;
    error?: string;
}
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;
}
interface MuPdfWasmModuleConfig {
    print?: (...values: unknown[]) => void;
    printErr?: (...values: unknown[]) => void;
}
declare global {
    var $libmupdf_wasm_Module: MuPdfWasmModuleConfig | undefined;
}
export declare function convertFileWithMarkit(filePath: string, signal?: AbortSignal, options?: MarkitFileConversionOptions): Promise<MarkitConversionResult>;
export declare function convertBufferWithMarkit(buffer: Uint8Array, extension: string, signal?: AbortSignal): Promise<MarkitConversionResult>;
export {};
