/** * Assert function for runtime checks with TypeScript assertion support. * @param cond Condition to check. * @param message Optional error message. * @throws {Error} If condition is false. */ export declare function assert(cond: any, message?: string): asserts cond; export declare function toBuffer(data: Uint8Array): ArrayBufferLike; export declare function hashBytes(data: Uint8Array): number; export declare function hashFunction(fn: Function): number; export declare function bytesEqual(a: Uint8Array, b: Uint8Array): boolean; export declare function dbGet(txnId: number, key: Uint8Array): Uint8Array | undefined; export declare function dbPut(txnId: number, key: Uint8Array, value: Uint8Array): void; export declare function dbDel(txnId: number, key: Uint8Array): void; /** * Regular expression for parsing error messages with paths. */ export declare const ERROR_AT: RegExp; /** * Add a path segment to an exception for better error reporting. * @param error The (Database)Error to modify. * @param path The path segment to add (string or number). * @returns The modified DatabaseError. */ export declare function addErrorPath(error: T, path: string | number): T; export declare const logLevel: number; /** @internal Symbol used to access the underlying model from a proxy */ export declare const TARGET_SYMBOL: unique symbol;