/** * Plain-text formatting for Dvala reference documentation. * * Shared by the CLI subcommands and the MCP server so both produce * identical output from the same Reference objects. */ import type { Reference } from '.'; /** Format a Reference into plain-text documentation. */ export declare function formatDoc(ref: Reference): string; /** * Look up a reference by name. * Tries direct lookup, effect prefix, then fuzzy suffix matching. * Returns `{ ref }` on unique match, `{ ambiguous: [...] }` on multiple, or `{ error }` on none. */ export declare function lookupDoc(name: string): { ref: Reference; } | { ambiguous: string[]; } | { error: string; }; /** List all core functions and special expressions with short descriptions. */ export declare function listCoreExpressions(): string; /** Get the list of module names with function counts. */ export declare function listModules(): string; /** List all functions in a specific module. Returns null if the module is unknown. */ export declare function listModuleExpressions(moduleName: string): string | null; /** List all datatypes with descriptions. */ export declare function listDatatypes(): string; /** Format all example programs. */ export declare function formatExamples(): string; /** Get the list of known module names. */ export declare function getModuleNames(): string[];