mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
22 lines • 886 B
TypeScript
/**
* Runtime Factory for creating runtime executors.
*/
import { Runtime, RuntimeOptions, RuntimeType } from './base.js';
export declare class RuntimeFactory {
/**
* Get availability status of all runtimes.
*/
static getAvailableRuntimes(): Promise<Record<string, boolean>>;
/**
* Get a runtime instance by name (synchronous for most runtimes).
*
* Note: For llm/lambda/network runtimes, this returns a wrapper that
* lazily initializes. Use getRuntimeAsync() for guaranteed initialization.
*/
static getRuntime(runtimeName: RuntimeType | string, options?: RuntimeOptions): Runtime;
/**
* Get a runtime instance asynchronously (for runtimes that need dynamic imports).
*/
static getRuntimeAsync(runtimeName: RuntimeType | string, options?: RuntimeOptions): Promise<Runtime>;
}
//# sourceMappingURL=factory.d.ts.map