/** * FFI Foundation - Koffi bindings for libnextimage * This module loads the C library and defines all function signatures */ import koffi from 'koffi'; /** * Define C struct types for Koffi */ declare const NextImageBufferStruct: koffi.IKoffiCType; declare const NextImageDecodeBufferStruct: koffi.IKoffiCType; declare const NextImageWebPEncodeOptionsStruct: koffi.IKoffiCType; declare const NextImageAVIFEncodeOptionsStruct: koffi.IKoffiCType; declare const NextImageAVIFDecodeOptionsStruct: koffi.IKoffiCType; declare const NextImageWebPDecodeOptionsStruct: koffi.IKoffiCType; /** * Common Functions */ export declare const nextimage_free_buffer: koffi.KoffiFunction; export declare const nextimage_free_decode_buffer: koffi.KoffiFunction; export declare const nextimage_last_error_message: koffi.KoffiFunction; export declare const nextimage_clear_error: koffi.KoffiFunction; /** * WebP Functions */ export declare const nextimage_webp_default_encode_options: koffi.KoffiFunction; export declare const nextimage_webp_default_decode_options: koffi.KoffiFunction; export declare const nextimage_webp_encode_alloc: koffi.KoffiFunction; export declare const nextimage_webp_decode_alloc: koffi.KoffiFunction; export declare const nextimage_webp_decode_size: koffi.KoffiFunction; /** * WebP Encoder/Decoder Instance Functions */ export declare const nextimage_webp_encoder_create: koffi.KoffiFunction; export declare const nextimage_webp_encoder_encode: koffi.KoffiFunction; export declare const nextimage_webp_encoder_destroy: koffi.KoffiFunction; export declare const nextimage_webp_decoder_create: koffi.KoffiFunction; export declare const nextimage_webp_decoder_decode: koffi.KoffiFunction; export declare const nextimage_webp_decoder_destroy: koffi.KoffiFunction; /** * AVIF Functions */ export declare const nextimage_avif_default_encode_options: koffi.KoffiFunction; export declare const nextimage_avif_default_decode_options: koffi.KoffiFunction; export declare const nextimage_avif_encode_alloc: koffi.KoffiFunction; export declare const nextimage_avif_decode_alloc: koffi.KoffiFunction; export declare const nextimage_avif_decode_size: koffi.KoffiFunction; /** * AVIF Encoder/Decoder Instance Functions */ export declare const nextimage_avif_encoder_create: koffi.KoffiFunction; export declare const nextimage_avif_encoder_encode: koffi.KoffiFunction; export declare const nextimage_avif_encoder_destroy: koffi.KoffiFunction; export declare const nextimage_avif_decoder_create: koffi.KoffiFunction; export declare const nextimage_avif_decoder_decode: koffi.KoffiFunction; export declare const nextimage_avif_decoder_destroy: koffi.KoffiFunction; /** * Export struct types for use in high-level APIs */ export { NextImageBufferStruct, NextImageDecodeBufferStruct, NextImageWebPEncodeOptionsStruct, NextImageWebPDecodeOptionsStruct, NextImageAVIFEncodeOptionsStruct, NextImageAVIFDecodeOptionsStruct }; /** * NULL pointer constant for koffi pointer comparison */ export declare const NULL_POINTER = 0n; /** * Helper: Check if a koffi pointer is NULL * @param ptr The pointer to check * @returns true if the pointer is NULL or undefined */ export declare function isNullPointer(ptr: any): boolean; //# sourceMappingURL=ffi.d.ts.map