import { ProviderOperationError } from '../types.js'; export type VercelProviderErrorCode = 'auth' | 'scope' | 'scope_link' | 'confirmation' | 'private_repo' | 'source' | 'missing' | 'stale' | 'identity' | 'quota' | 'image_not_ready' | 'locked' | 'timeout' | 'aborted' | 'cleanup' | 'route' | 'display' | 'api'; export interface VercelErrorContext { action?: string; operation?: 'source' | 'terminal' | 'api'; branch?: string; secrets?: readonly string[]; } /** A stable, redacted error exposed by the provider boundary. */ export declare class VercelProviderError extends ProviderOperationError { readonly code: VercelProviderErrorCode; constructor(code: VercelProviderErrorCode, message: string, exitCode?: number); } /** Map SDK, source, auth, and lifecycle failures to concise CLI errors. */ export declare function mapVercelError(error: unknown, context?: VercelErrorContext): VercelProviderError;