/** * Contracts Route * * GET /contracts/actions.public.json - Public action contracts from all plugins */ import { Hono } from "hono"; import type { ActionContract, ActionDefinition } from "@gizmo-ai/runtime"; /** * Public contract format (filtered view of ActionContract) */ export interface PublicContract { pluginKey: string; stateKey?: string; version: string; emits: ActionDefinition[]; listensTo: ActionContract["listensTo"]; accepts: string[]; } /** * Response format for /contracts/actions.public.json */ export interface PublicContractsResponse { schemaVersion: string; contracts: PublicContract[]; } export interface ContractsRouteConfig { /** List of contracts from installed plugins */ contracts: ActionContract[]; } /** * Create the contracts route * * Serves public action contracts for discovery and documentation. */ export declare function createContractsRoute(config: ContractsRouteConfig): Hono; //# sourceMappingURL=contracts.d.ts.map