import type { DefinitionSchema } from './types/definition-schema.ts'; import { WeftError } from './weft-error.ts'; /** * Thrown when a registered workflow or activity schema cannot be converted * to JSON Schema. Carries the offending entity name and direction so * server-side observability (logs and telemetry) and non-HTTP callers * (the in-process MCP builder, programmatic users of `buildRegistrySnapshot`) * can identify which registration is broken. The HTTP REST binding * deliberately masks this on the wire as a generic `500 / Internal server * error` so a misbehaving registration cannot leak schema layout to clients * that only have `system:read`. */ export declare class RegistrySchemaConversionError extends WeftError<'RegistrySchemaConversionError'> { readonly entityKind: 'workflow' | 'activity'; readonly entityName: string; readonly direction: 'inputSchema' | 'outputSchema'; constructor(entityKind: 'workflow' | 'activity', entityName: string, direction: 'inputSchema' | 'outputSchema', cause: unknown); } /** Convert one `DefinitionSchema` fragment to JSON Schema, wrapping a conversion failure as {@link RegistrySchemaConversionError}. */ export declare function convertSchema(entityKind: 'workflow' | 'activity', entityName: string, field: 'inputSchema' | 'outputSchema', schema: DefinitionSchema): Record;