export type GpuTimingCategory = 'simulation' | 'lighting' | 'render'; export interface GpuTimingRow { label: string; category: GpuTimingCategory; milliseconds: number; calls: number; } export interface GpuTimingFrame { rows: GpuTimingRow[]; skipped: number; } type ComputePass = Pick; /** Native passes normally; one timestamped pass per dispatch during a sampled frame. */ export declare function beginComputePass(device: GPUDevice, encoder: GPUCommandEncoder, descriptor: GPUComputePassDescriptor, category?: Exclude): ComputePass; /** Bounded, asynchronous timestamp readback. No GPU waits in the render loop. */ export declare class GpuProfiler { readonly supported: boolean; renderLabel: string; private resources?; private entries; private skipped; private recording; private pending; private disposed; private originalCreateEncoder?; private readonly device; constructor(device: GPUDevice); beginFrame(): boolean; timestamps(label: string, category: GpuTimingCategory): GPUComputePassTimestampWrites | undefined; endFrame(): Promise; private stopRecording; dispose(): void; } export {};