import type { RuntimeConfigLoadOptions } from '../inference/browser-harness.js'; import type { ToolingCommandRequest, ToolingCommandRequestInput, } from './command-api.js'; import type { ToolingSuccessEnvelope } from './command-envelope.js'; export interface NodeCommandRunOptions { runtimeLoadOptions?: RuntimeConfigLoadOptions; onProgress?: (progress: { stage: string | null; current: number | null; total: number | null; message: string | null; tensorName?: string | null; tensorBytesCurrent?: number | null; tensorBytesTotal?: number | null; }) => void; } export interface NodeCommandRunResult extends ToolingSuccessEnvelope { ok: true; surface: 'node'; request: ToolingCommandRequest; } export declare function hasNodeWebGPUSupport(): boolean; export declare function runNodeCommand( commandRequest: ToolingCommandRequestInput, options?: NodeCommandRunOptions ): Promise; export declare function normalizeNodeCommand( commandRequest: ToolingCommandRequestInput ): ToolingCommandRequest;