UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

25 lines (24 loc) • 997 B
/** * Shared ISO-BMFF (`ftyp`) image-brand detection. * * FileDetector and ImageProcessor must use the same brand tables and declared * box boundary when classifying AVIF, HEIC, and structural HEIF brands. Keeping * the scan here prevents the two consumers from drifting as new brands are * added. */ export declare const AVIF_FTYP_BRANDS: Set<string>; export declare const HEIC_FTYP_BRANDS: Set<string>; export declare const HEIF_STRUCTURAL_FTYP_BRANDS: Set<string>; /** * Whether the buffer starts with an ISO-BMFF `ftyp` box signature. */ export declare function hasFtypBoxSignature(input: Buffer): boolean; /** * Read compatible brands without scanning past the declared `ftyp` box. */ export declare function getCompatibleFtypBrands(input: Buffer): Set<string>; /** * Return the image MIME type encoded by an ISO-BMFF `ftyp` box, or null when * the box belongs to a non-image ISO-BMFF flavor. */ export declare function detectIsoBmffImageMimeType(input: Buffer): string | null;