/********************************************************************
 * @author:      Kaven
 * @email:       kaven@wuwenkai.com
 * @website:     http://kavenblog.com
 * @file:        [basic] /src/libs/hashing_algorithms/KavenCRC.ts
 * @create:      2019-04-02 17:02:48.463
 * @modify:      2019-04-03 14:31:49.920
 * @version:     1.1.20
 * @times:       33
 * @lines:       242
 * @copyright:   Copyright © 2019 Kaven. All Rights Reserved.
 * @description: [description]
 * @license:
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 ********************************************************************/
import { BitString } from "../BitString";
import { ICyclicRedundancyCheck, ICyclicRedundancyCheckModel } from "../Interfaces";
export declare class KavenCRC implements ICyclicRedundancyCheck {
    static readonly CRC32: ICyclicRedundancyCheckModel;
    /**
     * The ECMA polynomial, defined in ECMA 182.
     * @link http://reveng.sourceforge.net/crc-catalogue/17plus.htm#crc.cat.crc-64-ecma-182
     */
    static readonly CRC64_ECMA_182: ICyclicRedundancyCheckModel;
    /**
     * Wolfgang Ehrhardt
     */
    static readonly CRC64_ECMA_WE: ICyclicRedundancyCheckModel;
    /**
     * XZ Utils
     */
    static readonly CRC64_ECMA_XZ: ICyclicRedundancyCheckModel;
    /**
     * The ISO polynomial, defined in ISO 3309 and used in HDLC.
     */
    static readonly CRC64_ISO: ICyclicRedundancyCheckModel;
    Width: number;
    Polynomial: BitString;
    InitialValue: BitString;
    FinalXORValue: BitString;
    InputReflected: boolean;
    ResultReflected: boolean;
    private readonly table;
    readonly ShiftBits: number;
    readonly TopBitMask: BitString;
    readonly FullBitMask: BitString;
    constructor(modal: ICyclicRedundancyCheckModel);
    MakeTable(): BitString[];
    PrintTable(columns?: number): void;
    Compute(str: string): BitString;
    ComputerWithoutTable(str: string): BitString;
}
//# sourceMappingURL=KavenCRC.d.ts.map