import { Extras } from "./extras/index.js";
import { Inference } from "./inference.js";
import { Ocr } from "./ocr.js";
import { StringDict } from "../../../parsing/stringDict.js";
/**
 * Document prediction wrapper class. Holds the results of a parsed document.
 * @typeParam T an extension of an `Inference`. Mandatory in order to properly create an inference.
 */
export declare class Document<T extends Inference> {
    /** File name as sent back by the server. */
    filename: string;
    /** Result of the base inference. */
    inference: T;
    /** ID of the document as sent back by the server. */
    id: string;
    /** Potential `Extras` fields sent back along the prediction. */
    extras?: Extras;
    /** Raw-text response for `allWords` parsing. */
    ocr?: Ocr;
    /** Page number as sent back by the API. */
    nPages: number;
    /**
     *
     * @param inferenceClass constructor signature for an inference.
     * @param httpResponse raw http response.
     */
    constructor(inferenceClass: new (httpResponse: StringDict) => T, httpResponse: StringDict);
    /**
     * Default string representation.
     */
    toString(): string;
    private injectFullTextOcr;
}
