import type { CommandBundle, CommandContextRenderInput, CommandContextRenderResult, CommandContractAnalysis, CommandDiscoveryResult, CommandEngineActionInput, CommandListResult, CommandMessageTransformInput, CommandMessageTransformResult, CommandRoutePreview, CommandRoutePreviewInput } from "./types.js"; /** * Discover command bundles from existing OpenCode command primitives. * * @param options - Project root containing `.opencode/commands`. * @returns Discovered command bundles and primitive-loader warnings. */ export declare function discoverCommandBundles(options: { projectRoot: string; globalConfigPath?: string; }): Promise; /** * Analyze the routing contract exposed by a command bundle. * * @param command - Discovered command bundle. * @returns Contract analysis with explicit failure states. */ export declare function analyzeCommandContract(command: CommandBundle): CommandContractAnalysis; /** * Render command context into a bounded serialized payload. * * @param input - Command name, context payload, and bounds. * @returns Bounded context rendering result. */ export declare function renderCommandContext(input: CommandContextRenderInput, band?: string): CommandContextRenderResult; /** * Apply a narrow command-only message transform. * * @param input - Command invocation and existing messages. * @returns Transformed messages plus explicit broad-transform exclusions. */ export declare function transformCommandMessages(input: CommandMessageTransformInput): CommandMessageTransformResult; /** * Preview command routing without executing or spawning any process. * * @param input - Project root, command name, optional context, and pressure values. * @returns Route preview payload. */ export declare function routeCommandPreview(input: CommandRoutePreviewInput): Promise; /** * Execute a command-engine action through the public library API. * * @param projectRoot - Project root for discovery and routing. * @param input - Validated action input. * @returns Action-specific command-engine result. */ export declare function executeCommandEngineAction(projectRoot: string, input: CommandEngineActionInput): Promise; /** * List available commands in a compact, agent-friendly format. * * Unlike `discover` which returns full command bundles with raw bodies, * this returns a minimal summary optimized for agent decision-making: * name, description, agent hint, and whether arguments are accepted. * * @param options - Project root containing `.opencode/commands`. * @returns Compact command listing with total count. */ export declare function listCommands(options: { projectRoot: string; }): Promise; export type * from "./types.js"; //# sourceMappingURL=index.d.ts.map