import { CubeBufferData, IBasisModule, IEncodeOptions } from "../type.js"; /** * Fetches the WASM binary from the given URL. There is no CDN or other fallback: * only the version-matched, bundled asset is used by default, and an explicit * `wasmUrl` is fetched as-is. A failed request throws with the URL and status so * a stale or mismatched WASM never loads silently. */ export declare function fetchWasmBinary(wasmUrl: string): Promise; export declare class BrowserBasisEncoder { private modulePromise; private loadedWasmUrl; init(options?: { jsUrl?: string; wasmUrl?: string; }): Promise; /** * encode image data to ktx2 file data * @param bufferOrBufferArray - image data, can be a single image or an array of images * if it's an array, the images will be encoded as a cube map, the order of the images is: * 0: Positive X face * 1: Negative X face * 2: Positive Y face * 3: Negative Y face * 4: Positive Z face * 5: Negative Z face * @param options - encode options, see {@link IEncodeOptions} * @returns ktx2 file data */ encode(bufferOrBufferArray: Uint8Array | CubeBufferData, options?: Partial): Promise; } export declare const browserEncoder: BrowserBasisEncoder;