export type CCITTFaxDecoderSource = {
    /**
     * - Method that return one byte of data for decoding,
     * or -1 when EOF is reached.
     */
    next: Function;
};
/**
 * @param {CCITTFaxDecoderSource} source - The data which should be decoded.
 * @param {Object} [options] - Decoding options.
 */
export class CCITTFaxDecoder {
    constructor(source: any, options?: {});
    source: any;
    eof: boolean;
    encoding: any;
    eoline: any;
    byteAlign: any;
    columns: any;
    rows: any;
    eoblock: any;
    black: any;
    codingLine: Uint32Array<any>;
    refLine: Uint32Array<any>;
    codingPos: number;
    row: number;
    nextLine2D: boolean;
    inputBits: number;
    inputBuf: number;
    outputBits: number;
    rowsDone: boolean;
    readNextChar(): number;
    err: boolean | undefined;
    /**
     * @private
     */
    private _addPixels;
    /**
     * @private
     */
    private _addPixelsNeg;
    /**
     * This function returns the code found from the table.
     * The start and end parameters set the boundaries for searching the table.
     * The limit parameter is optional. Function returns an array with three
     * values. The first array element indicates whether a valid code is being
     * returned. The second array element is the actual code. The third array
     * element indicates whether EOF was reached.
     * @private
     */
    private _findTableCode;
    /**
     * @private
     */
    private _getTwoDimCode;
    /**
     * @private
     */
    private _getWhiteCode;
    /**
     * @private
     */
    private _getBlackCode;
    /**
     * @private
     */
    private _lookBits;
    /**
     * @private
     */
    private _eatBits;
}
