/** * MCP hosts truncate server instructions near 2 KB, so the prompt stays * within this limit with the most decisive rules first. Detail lives in * each tool's description. */ export declare const MAX_MCP_INSTRUCTION_CHARS = 2000; /** Prompt size in UTF-8 bytes: the request-cost budget. */ export declare const MAX_MCP_INSTRUCTION_BYTES = 1600; export declare const TOOL_RESEARCH_INSTRUCTIONS: string; /** * MCP `initialize.instructions`. The prompt is the same for every tool * subset; `_enabledToolNames` stays only for existing callers. */ export declare function buildMcpInstructions(_enabledToolNames?: readonly string[]): string; /** CLI `schema` instructions: the same prompt as MCP. */ export declare function buildCliInstructions(): string; export interface GrammarCapability { language: string; languageId?: string; selectorAliases: readonly string[]; extensions: readonly string[]; structuralSearch: boolean; signatureOutline: boolean; graphFacts: boolean; } /** Runtime astSearch grammar inventory, served by CLI `schema` beside the prompt. */ export declare function buildGrammarCapabilityInstruction(capabilities: readonly GrammarCapability[] | undefined): string | undefined;