import { InternalMcpError, PublicMcpError } from './mcp.error'; /** * Thrown when a flow exits without producing output. */ export declare class FlowExitedWithoutOutputError extends InternalMcpError { constructor(); } /** * Thrown when no MCP server is found. */ export declare class ServerNotFoundError extends InternalMcpError { constructor(); } /** * Thrown when a config file is not found. */ export declare class ConfigNotFoundError extends InternalMcpError { constructor(path: string, triedPaths?: string[]); } /** * Thrown when session verification fails. */ export declare class SessionVerificationFailedError extends InternalMcpError { constructor(); } /** * Thrown when a context extension is not available. */ export declare class ContextExtensionNotAvailableError extends InternalMcpError { readonly originalError?: Error; constructor(message: string, cause?: Error); } /** * Thrown when scope configuration is invalid. */ export declare class ScopeConfigurationError extends InternalMcpError { constructor(message: string); } /** * Thrown when HA (High Availability) configuration is invalid or missing. */ export declare class HaConfigurationError extends InternalMcpError { constructor(message: string); } /** * Thrown when an invoke state key is missing. */ export declare class InvokeStateMissingKeyError extends InternalMcpError { constructor(key: string); } /** * Thrown when a skill session operation fails. */ export declare class SkillSessionError extends InternalMcpError { constructor(operation: string, reason: string); } /** * Thrown when a skill is invalid. */ export declare class InvalidSkillError extends InternalMcpError { constructor(name: string, details: string); } /** * Thrown when fetching skill instructions fails. */ export declare class SkillInstructionFetchError extends InternalMcpError { constructor(url: string, status: number, statusText: string); } /** * Thrown when an instruction source is invalid. */ export declare class InvalidInstructionSourceError extends InternalMcpError { constructor(); } /** * Thrown when a user calls `SkillContext.loadInstructions()` or * `SkillContext.build()` directly on a skill that does not override them. * * Under the normal `@Skill`-decorator flow these methods are never invoked on * the user's class — the runtime drives loading via `SkillInstance` against * the decorator metadata. This error fires only when user code constructs a * `SkillContext` subclass manually (outside the decorator pipeline) and * forgets to provide an implementation. */ export declare class SkillContextNotImplementedError extends InternalMcpError { constructor(skillName: string, method: 'loadInstructions' | 'build'); } /** * Thrown when a serverless handler is not initialized. */ export declare class ServerlessHandlerNotInitializedError extends InternalMcpError { constructor(); } /** * Thrown when a required prompt argument is missing. * This is a PUBLIC error (400) since it represents user-facing input validation. */ export declare class MissingPromptArgumentError extends PublicMcpError { constructor(argName: string); } /** * Thrown when a dynamic adapter has a name conflict. */ export declare class DynamicAdapterNameError extends InternalMcpError { constructor(message: string); } /** * Thrown when an agent config key is not found. */ export declare class AgentConfigKeyNotFoundError extends InternalMcpError { constructor(path: string); } /** * Thrown when an agent tool execution fails. */ export declare class AgentToolExecutionError extends InternalMcpError { constructor(message: string); } /** * Thrown when an agent method is not available. */ export declare class AgentMethodNotAvailableError extends InternalMcpError { constructor(method: string, name: string); } /** * Thrown when Vercel KV does not support a feature. */ export declare class VercelKvNotSupportedError extends InternalMcpError { constructor(feature: string); } /** * Thrown when Vercel KV async initialization is required. */ export declare class VercelKvAsyncInitRequiredError extends InternalMcpError { constructor(message?: string); } /** * Thrown when a required config value is undefined. */ export declare class RequiredConfigUndefinedError extends InternalMcpError { constructor(path: string); } /** * Thrown when a registry is accessed before initialization. */ export declare class RegistryNotInitializedError extends InternalMcpError { constructor(owner: string, registry: string); } /** * Thrown when an enclave execution fails. */ export declare class EnclaveExecutionError extends InternalMcpError { readonly originalError?: Error; constructor(message: string, cause?: Error); } /** * Thrown when a dynamic job is executed directly instead of through the enclave bridge. */ export declare class DynamicJobDirectExecutionError extends InternalMcpError { constructor(jobName?: string); } /** * Thrown when a flow stage receives missing or undefined input * (e.g., `request` is undefined in a well-known flow's parseInput stage). */ export declare class FlowInputMissingError extends InternalMcpError { readonly field: string; readonly flowName?: string; constructor(field: string, flowName?: string); } //# sourceMappingURL=sdk.errors.d.ts.map