import type { AV1CodecConfig, AvifInfo, ImageSpatialExtent, ISOBMFFBox, ItemInfo, ItemLocation, PixelInformation } from '../types'; /** * Parse ISOBMFF (ISO Base Media File Format) boxes */ export declare function parseISOBMFF(buffer: Uint8Array, depth?: number): ISOBMFFBox[]; /** * Find a box by type */ export declare function findBox(boxes: ISOBMFFBox[], type: string): ISOBMFFBox | undefined; /** * Find all boxes of a type */ export declare function findAllBoxes(boxes: ISOBMFFBox[], type: string): ISOBMFFBox[]; /** * Validate AVIF file type */ export declare function validateFtyp(buffer: Uint8Array): boolean; /** * Parse item location box (iloc) */ export declare function parseIloc(data: Uint8Array): ItemLocation[]; /** * Parse item info box (iinf) */ export declare function parseIinf(data: Uint8Array): ItemInfo[]; /** * Parse image spatial extent (ispe) */ export declare function parseIspe(data: Uint8Array): ImageSpatialExtent; /** * Parse pixel information (pixi) */ export declare function parsePixi(data: Uint8Array): PixelInformation; /** * Parse AV1 codec configuration (av1C) */ export declare function parseAv1C(data: Uint8Array): AV1CodecConfig; /** * Get AVIF info from parsed boxes */ export declare function getAvifInfo(boxes: ISOBMFFBox[]): AvifInfo; /** * Get image item data */ export declare function getImageData(buffer: Uint8Array, boxes: ISOBMFFBox[], itemId: number): Uint8Array | null; /** * Create ftyp box for AVIF */ export declare function createFtyp(): Uint8Array;