export class Codec {
    /**
     *
     * @param {Uint8Array} data
     * @returns {Promise<{data:Uint8Array, width:number, height:number}>}
     */
    decode(data: Uint8Array): Promise<{
        data: Uint8Array;
        width: number;
        height: number;
    }>;
    /**
     * Whether codec is able to decode this data, typically checks headers in the data
     * @param {Uint8Array} data
     * @return {Promise<boolean>} true if able, false otherwise
     */
    test(data: Uint8Array): Promise<boolean>;
}
//# sourceMappingURL=Codec.d.ts.map