import { Device, DeviceProps } from "./device.js"; /** * Create and attach devices for a specific backend. */ export declare abstract class Adapter { abstract type: string; /** Check if this backend is supported */ abstract isSupported(): boolean; /** Check if the given handle is a valid device handle for this backend */ abstract isDeviceHandle(handle: unknown): boolean; /** Create a new device for this backend */ abstract create(props: DeviceProps): Promise; /** Attach a Device to a valid handle for this backend (GPUDevice, WebGL2RenderingContext etc) */ abstract attach(handle: unknown, props: DeviceProps): Promise; /** * Page load promise * Resolves when the DOM is loaded. * @note Since are be limitations on number of `load` event listeners, * it is recommended avoid calling this accessor until actually needed. * I.e. we don't call it unless you know that you will be looking up a string in the DOM. */ get pageLoaded(): Promise; } //# sourceMappingURL=adapter.d.ts.map