import * as ort from "onnxruntime-web"; import type { CanvasOps, CoreCanvas, PlatformProvider } from "../core/platform.js"; /** True when `navigator.gpu` is present and at least one adapter is available. */ export declare function isWebGpuAvailable(): Promise; /** Returns `["webgpu", "wasm"]` when WebGPU is available, otherwise `["wasm"]`. */ export declare function getDefaultWebExecutionProviders(): Promise; export declare class WebPlatformProvider implements PlatformProvider { readonly pathSeparator = "/"; readonly ort: PlatformProvider["ort"]; createCanvas(_width: number, _height: number): CoreCanvas; isCanvas(image: unknown): image is CoreCanvas; loadResource(source: string | ArrayBuffer | undefined, defaultUrl: string): Promise; saveDebugImage(_canvas: CoreCanvas, _filename: string, _outputDir: string): Promise; readonly canvas: CanvasOps; }