/** * -------------------------------------------------------------------- * docmd : the zero-config documentation engine. * * @package @docmd/core (and ecosystem) * @website https://docmd.io * @repository https://github.com/docmd-io/docmd * @license MIT * @copyright Copyright (c) 2025-present docmd.io * * [docmd-source] - Please do not remove this header. * -------------------------------------------------------------------- */ export interface EngineTask { type: string; payload: any; timeout?: number; } export interface EngineResult { success: boolean; data?: T; error?: string; duration?: number; } export interface Engine { readonly name: string; readonly version: string; run(task: EngineTask): Promise>; supports?(taskType: string): boolean; shutdown?(): void; destroy?(): Promise; } /** * Create a JavaScript engine instance. * * The JS engine uses only Node.js built-in APIs — no external dependencies, * no native binaries. Works on every platform and Node.js version docmd supports. */ export declare function createJsEngine(): Engine; //# sourceMappingURL=index.d.ts.map