/** * Internal helpers shared across codec façades. Not part of the public API. */ import { type CompressionMode, type CompressOptions, type DecompressOptions } from './types.js'; /** Clamp a level into `[min, max]`, falling back to `def` when undefined. */ export declare function clampLevel(level: number | undefined, min: number, max: number, def: number): number; /** Resolve the public policy option to its default. */ export declare function compressionMode(opts?: CompressOptions): CompressionMode; /** Pick a level from mode defaults unless the caller supplied one explicitly. */ export declare function levelForMode(opts: CompressOptions | undefined, min: number, max: number, defaults: Record): number; export declare function bunRuntime(): any | undefined; /** Throw {@link AbortError} if the signal is already aborted. */ export declare function throwIfAborted(signal?: AbortSignal): void; /** * Run a synchronous codec on the engine inside a Promise, honoring an * `AbortSignal` at entry and reporting trivial start/finish progress. The * engine itself is one-shot and cannot yield mid-call; for genuinely * off-thread work use \`@myrialabs/zipkit\`. */ export declare function runAsync(work: () => Uint8Array, opts: CompressOptions | DecompressOptions | undefined, inputLen: number): Promise; //# sourceMappingURL=internal.d.ts.map