import { F as FormatKey, E as EncodeOptions, c as EncoderModule, d as FormatMeta } from '../types-mKodz4f_.js'; /** * Get the encoder module for a given format key. * Lazy-loads on first access, cached thereafter. */ declare function getEncoder(formatKey: string): Promise; /** * Encode a Canvas to the specified format. * Convenience wrapper: loads the encoder and calls encode(). */ declare function encode(canvas: HTMLCanvasElement | OffscreenCanvas, options: { format: FormatKey; } & EncodeOptions): Promise; /** * Get format metadata for a specific format key. */ declare function getFormatInfo(formatKey: string): Promise; /** * Get metadata for all supported formats. * Returns one entry per canonical format (no alias duplicates). */ declare function getSupportedFormats(): Promise; /** * Check if a format key is supported. */ declare function canEncode(formatKey: string): boolean; export { canEncode, encode, getEncoder, getFormatInfo, getSupportedFormats };