import type { _MTLIOScratchBuffer } from "./MTLIOScratchBuffer.js";
export interface _MTLIOScratchBufferAllocator {
    /**
     * This method is called when additional scratch memory is required by a load command. The scratch buffer returned should NOT be an autoreleased object. Scratch memory is needed for cases where a texture is being copied to. minimumSize is the smallest buffer that will allow the command to execute, however a larger buffer can be provided and susequent commands will be able to use it, thus avoiding the need for an additional callback. Returning nil from the function will result in the load command being skipped and the commandBuffer getting cancelled.
     */
    newScratchBufferWithMinimumSize$?(minimumSize: number): _MTLIOScratchBuffer | null;
}
