/** * Effect tagged errors for provider pack system. * * These errors provide structured error handling with clear remediation hints * for pack loading, provider resolution, and runtime failures. */ declare const ProviderPackLoadError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "ProviderPackLoadError"; } & Readonly; /** * Error thrown when a provider pack fails to load. * * This includes: * - Package not installed (missing from node_modules) * - Package exports invalid structure (missing/wrong fields) * - Package load() function throws during initialization */ export declare class ProviderPackLoadError extends ProviderPackLoadError_base<{ readonly packageName: string; readonly reason: string; readonly remediation: string; readonly cause?: unknown; }> { /** * Get error message (for standard Error compatibility). */ get message(): string; /** * Format error as a helpful message with remediation steps. */ toString(): string; } declare const ProviderNotFoundError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "ProviderNotFoundError"; } & Readonly; /** * Error thrown when a requested provider is not registered. * * Includes available providers and optional suggestion for typo correction. */ export declare class ProviderNotFoundError extends ProviderNotFoundError_base<{ readonly providerId: string; readonly availableProviders: string[]; readonly suggestion?: string; }> { /** * Format error with available options and possible suggestion. */ toString(): string; } declare const ProviderRuntimeError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "ProviderRuntimeError"; } & Readonly; /** * Error thrown during provider operation execution. * * Wraps underlying errors from provider SDK calls (getModel, generateText, etc.) * with context about which provider/model failed. */ export declare class ProviderRuntimeError extends ProviderRuntimeError_base<{ readonly providerId: string; readonly modelId?: string; readonly operation: string; readonly cause: unknown; }> { /** * Format error with provider context and underlying cause. */ toString(): string; } declare const ProviderRegistrationError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "ProviderRegistrationError"; } & Readonly; /** * Error thrown when provider registration fails. */ export declare class ProviderRegistrationError extends ProviderRegistrationError_base<{ readonly providerId: string; readonly cause: unknown; }> { get message(): string; toString(): string; } declare const ProviderModelError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & { readonly _tag: "ProviderModelError"; } & Readonly; /** * Error thrown when a provider model operation fails. */ export declare class ProviderModelError extends ProviderModelError_base<{ readonly providerId: string; readonly modelId: string; readonly cause: unknown; }> { } /** * Union type for all provider errors, enabling exhaustive catchTag handling. */ export type ProviderError = ProviderPackLoadError | ProviderNotFoundError | ProviderRuntimeError | ProviderRegistrationError | ProviderModelError; export {}; //# sourceMappingURL=errors.d.ts.map