export declare const version = "1";
export declare function wrapper(arr: NestedEntry): TideMemory;
export declare function encodeStr(str: string, enc: string): Uint8Array;
export declare function encode(data: number | boolean | Uint8Array): Uint8Array | undefined;
interface entry {
    value: any;
    encoding?: string;
}
type NestedEntry = (entry | Uint8Array | NestedEntry)[];
export declare class TideMemory extends Uint8Array {
    static CreateFromArray(datas: Uint8Array[]): TideMemory;
    static Create(initialValue: Uint8Array, totalLength: number, version?: number): TideMemory;
    WriteValue(index: number, value: Uint8Array): void;
    GetValue<T extends Uint8Array>(index: number): T;
}
export {};
