/** * Core type definitions for WebInfer */ /** * Data type for tensors */ export type DType = 'float32' | 'float16'; /** * Position encoding modes for attention */ export declare enum PosEncodingMode { NONE = 0, ROPE_LLAMA = 1, ALIBI = 2 } /** * Get the byte size for a given dtype */ export declare function dtypeByteSize(dtype: DType): number; /** * Get the GPUTextureFormat for a given dtype */ export declare function dtypeToGPUFormat(dtype: DType): string; /** * Get WGSL type string for a given dtype */ export declare function dtypeToWGSL(dtype: DType): 'f32' | 'f16';