export declare const FATBIN_MAGIC = 3126193488; export declare const MAX_CONTAINERS = 64; export declare const MAX_ENTRIES = 256; /** The most one entry may decompress to, and the most all entries of one file may. */ export declare const MAX_ENTRY_BYTES: number; export declare const MAX_TOTAL_BYTES: number; export type Compression = 'none' | 'zstd' | 'lz4' | 'unknown'; export type Zstd = (input: Buffer, maxOutput: number) => Buffer; export declare const defaultZstd: Zstd | null; export interface RawEntry { container: number; index: number; kind: number; headerSize: number; paddedSize: number; compressedSize: number; version: number; archNumber: number; objNameOffset: number; objNameLen: number; flags: bigint; decompressedSize: number; /** Where the payload starts in the buffer, and how many bytes of it are really there. */ payloadOffset: number; payloadLength: number; } /** Walks the containers in b[start, end). A malformed header ends the walk with a warning; what was read stays. */ export declare function walkFatbin(b: Buffer, start: number, end: number, warnings: string[]): { entries: RawEntry[]; containers: number; truncated: boolean; }; /** * An LZ4 block (no frame), as CUDA 12 writes. Original: reads only inside `src`, writes only inside `maxOut`, refuses a match offset * that points before the start of the output. Throws RangeError on any malformed input. */ export declare function lz4Block(src: Buffer, maxOut: number): Buffer; export interface Payload { /** The bytes of the cubin or the PTX text, or null when they could not be read (the reason is in `note`). */ data: Buffer | null; compressed: Compression; note?: string; } /** The entry's payload as bytes, decompressed when it is and when it may be. `budget.left` is spent by what each attempt claims, win or lose. */ export declare function readPayload(b: Buffer, entry: RawEntry, zstd: Zstd | null, budget: { left: number; }): Payload; //# sourceMappingURL=cuda-fatbin.d.ts.map