import type { RiffChunk, WebpInfo } from './types'; /** * Parse a RIFF/WEBP container into its constituent chunks. * * Each chunk's `data` is a `subarray` view into the input buffer — no * copy. This matters for large WebP files: the previous implementation * used `buffer.slice(...)` which copied each chunk's bytes, doubling * peak memory during decode of multi-megabyte input. Callers that * mutate chunk data should clone explicitly. * * Tolerates short/truncated input: instead of looping to negative * offsets or reading past EOF, we stop cleanly when the next chunk * header would extend beyond `buffer.length`. */ export declare function parseRiff(buffer: Uint8Array): RiffChunk[]; /** * Get WebP file info from chunks */ export declare function getWebpInfo(chunks: RiffChunk[]): WebpInfo; /** * Create RIFF container for WebP */ export declare function createRiffContainer(chunks: { fourCC: string, data: Uint8Array }[]): Uint8Array;