import "../rpc/index.mjs"; import { g as RpcFunctionDefinitionAny } from "../types-KZOyhez5.mjs"; import { H as RpcFunctionsHost, Nt as DevframeHost, Qt as SharedState, kt as DevframeTracingRecorder, z as DevframeNodeContext } from "../index-JJbcyrny.mjs"; import "../index-BKu9BxcT.mjs"; export interface CreateHostContextOptions { cwd: string; workspaceRoot?: string; mode: 'dev' | 'build'; host: DevframeHost; /** * `import.meta.url` of the module that defines the devframe this context * serves (from `DevframeDefinition.importMetaUrl`). Supplies the default * `resolveFrom` base for remote {@link DevframeViewHost.hostStatic} sources * that don't set one, so a locally installed copy of an assets package is * served with zero network. An internal plumbing detail; it isn't part of * the public {@link DevframeNodeContext} surface. */ importMetaUrl?: string; /** * Built-in RPC declarations to register on the host. Framework * adapters (vite, rolldown, cli) can pass the ones they need; the * host itself has no opinions about the built-in set. */ builtinRpcDeclarations?: readonly RpcFunctionDefinitionAny[]; } /** * Framework- and build-tool-agnostic core of the Devframe node context. * Wires the RPC host, view (HTTP file-serving) host, diagnostics, and * agent subsystems. Host adapters can wrap this to augment `ctx` with * extra surfaces; for example, `@vitejs/devtools-kit`'s * `createKitContext` attaches `docks`, `terminals`, `messages`, and * `commands` when mounted into Vite DevTools. */ export declare function createHostContext(options: CreateHostContextOptions): Promise; export interface CreateStorageOptions { filepath: string; initialValue: T; mergeInitialValue?: false | ((initialValue: T, savedValue: T) => T); debounce?: number; } export declare function createStorage(options: CreateStorageOptions): SharedState; /** * Create a standalone Tracing Channel recorder. A tool keeps one as its own * tracing instance, records through it, and optionally shows it in devframe * with `ctx.tracing.attach(recorder)`. */ export declare function createTracingRecorder(): DevframeTracingRecorder; export type { RpcFunctionsHost };