import type { AvifEncodeOptions, AvifImageData } from './types'; /** * Encode 8-bit RGBA pixels with the bundled TypeScript AV1 encoder. * * Any pixel that is not fully opaque makes this a two-item file: the colour * image, plus an alpha auxiliary image linked to it, which is how every AVIF * decoder expects transparency. Pass `alpha: false` to flatten instead. */ export declare function encode(imageData: AvifImageData, options?: AvifEncodeOptions): Uint8Array; /** Promise-returning form retained for callers with an asynchronous pipeline. */ export declare function encodeAsync(imageData: AvifImageData, options?: AvifEncodeOptions): Promise; /** Encode an AV1 low-overhead OBU stream without the AVIF container. */ export declare function encodeAV1(rgba: Uint8Array, width: number, height: number, options?: AvifEncodeOptions, alphaEncodedSeparately?: boolean): Uint8Array; /** Map the public quality scale to AV1's inverse 8-bit base quantizer. */ export declare function qualityToQIndex(quality: number): number;