import type { StorageSource, UniformType } from '@use-gpu/core'; type ScratchSourceOptions = { /** WebGPU buffer flags */ flags?: GPUFlagsConstant; /** Read write access (exclusive) */ readWrite?: boolean; /** Initial allocation size */ reserve?: number; /** Declarative allocation size */ length?: number; /** Resizable binding */ volatile?: boolean; }; export declare const useScratchSource: (format: UniformType, options?: ScratchSourceOptions) => [StorageSource, (x: number) => void]; export declare const useNoScratchSource: () => void; export declare const getScratchSource: (device: GPUDevice, format: UniformType, options?: ScratchSourceOptions) => [StorageSource, (x: number) => void]; export {};