import { KaitaiStreamReader } from "../../../core/kaitai/kaitai-stream-reader";
import { KaitaiStreamWriter } from "../../../core/kaitai/kaitai-stream-writer";
import { StreamBufferType } from "../../../core/kaitai/kaitai-stream";
export declare function typedArrayToBuffer(array: Uint8Array): ArrayBuffer;
export declare class TapStreamReader extends KaitaiStreamReader {
    static fromArray(array: Uint8Array): TapStreamReader;
    static create(packet: Uint8Array | TapStreamReader): TapStreamReader;
    readStr(n: number): string;
    readU2(): number;
    readU4(): number;
    readF4(): number;
    subStream(length: number): TapStreamReader;
}
export declare class TapStreamWriter extends KaitaiStreamWriter {
    constructor(lengthOrBuffer?: number | StreamBufferType, byteOffset?: number, isBigEndian?: boolean);
    writeFunction(type: string, options: any, fieldValue?: any, fieldSize?: any): this;
    addPadding(padSize: number): this;
    addCRC(options?: {
        offset?: number;
    }): this;
    writeU4(value: number): this;
    writeU2(value: number): this;
    writeU1(value: number): this;
    writeF4(value: number): this;
    writeStr(value: string, length?: number): this;
    writeByte(byte: number): this;
    writeBitsInt(value: number, n: number): this;
}
