eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
16 lines (15 loc) • 665 B
TypeScript
import type { Nitro } from "nitro/types";
/**
* Starts capturing the dev bundler's live virtual-module map for `nitro`.
* Call once per dev Nitro instance, before its first build.
*/
export declare function captureDevLiveVirtualModules(nitro: Nitro): void;
/**
* Mirrors one virtual-module set into the captured dev bundler map: ids
* under `prefix` are replaced by `entries`. Returns `false` when no live
* map was captured (the caller should tell the user a restart is needed).
*/
export declare function replaceDevLiveVirtualModules(nitro: object, input: {
readonly entries: Readonly<Record<string, string>>;
readonly prefix: string;
}): boolean;