/** * @octomil/browser — Engine registry * * Minimal registry for discovering, benchmarking, and selecting inference * engines. In the browser environment only ONNX Runtime (WebGPU / WASM) is * available by default, but the registry allows third-party plugins to * register additional backends. * * Matches the cross-platform SDK interface. */ import type { EnginePlugin } from "./engine-plugin.js"; import type { DetectionResult, RankedEngine } from "../../../types.js"; export declare class EngineRegistry { private plugins; /** Register an engine plugin. Replaces any existing plugin with the same name. */ register(plugin: EnginePlugin): void; /** Remove a registered plugin by name. */ remove(name: string): boolean; /** Get a registered plugin by name. */ get(name: string): EnginePlugin | undefined; /** List all registered plugin names. */ get engines(): readonly string[]; /** Clear all registrations. */ reset(): void; /** Detect which registered engines are available. */ detectAll(modelName?: string): Promise; /** Benchmark available engines and return results sorted by throughput. */ benchmarkAll(modelName: string, nTokens?: number): Promise; /** Pick the best engine from benchmark results (highest throughput, no error). */ selectBest(ranked: RankedEngine[]): RankedEngine | null; /** Convenience: detect → benchmark → select in one call. */ autoSelect(modelName: string, nTokens?: number): Promise; private sortedPlugins; } //# sourceMappingURL=engine-registry.d.ts.map