/** * Custom error classes for PowerPoint MCP Server */ export interface ErrorContext { operationId?: string; filePath?: string; slideIndex?: number; elementId?: string; agentId?: string; sessionId?: string; timestamp: Date; stackTrace?: string; userAgent?: string; requestId?: string; } export interface AIFriendlyError { success: false; error: { type: string; code: string; message: string; details?: any; suggestions: string[]; recoveryOptions: string[]; severity: 'low' | 'medium' | 'high' | 'critical'; isRetryable: boolean; estimatedRecoveryTime?: number; }; context: ErrorContext; metadata: { timestamp: string; operationId: string; duration: number; }; } export declare class PowerPointMCPError extends Error { readonly code: string; readonly statusCode: number; readonly severity: 'low' | 'medium' | 'high' | 'critical'; readonly isRetryable: boolean; readonly context: ErrorContext; readonly suggestions: string[]; readonly recoveryOptions: string[]; constructor(message: string, code: string, statusCode?: number, severity?: 'low' | 'medium' | 'high' | 'critical', isRetryable?: boolean, context?: Partial, suggestions?: string[], recoveryOptions?: string[]); toAIFriendlyFormat(): AIFriendlyError; private getEstimatedRecoveryTime; } export declare class FileNotFoundError extends PowerPointMCPError { constructor(filePath: string); } export declare class FileAlreadyExistsError extends PowerPointMCPError { constructor(filePath: string); } export declare class PresentationNotOpenError extends PowerPointMCPError { constructor(filePath: string); } export declare class SlideNotFoundError extends PowerPointMCPError { constructor(slideIndex: number); } export declare class InvalidSlideIndexError extends PowerPointMCPError { constructor(slideIndex: number, maxIndex: number); } export declare class InvalidPositionError extends PowerPointMCPError { constructor(position: string); } export declare class InvalidSizeError extends PowerPointMCPError { constructor(size: string); } export declare class InvalidColorError extends PowerPointMCPError { constructor(color: string); } export declare class InvalidShapeError extends PowerPointMCPError { constructor(shape: string); } export declare class InvalidChartTypeError extends PowerPointMCPError { constructor(chartType: string); } export declare class ImageNotFoundError extends PowerPointMCPError { constructor(imagePath: string); } export declare class PermissionError extends PowerPointMCPError { constructor(operation: string, filePath: string); } export declare class ValidationError extends PowerPointMCPError { constructor(field: string, value: any, expectedType: string); } export declare class UnsupportedFormatError extends PowerPointMCPError { constructor(format: string); } export declare class CorruptedFileError extends PowerPointMCPError { constructor(filePath: string); } export declare class AnimationError extends PowerPointMCPError { constructor(elementId: string, animationType: string); } export declare class TransitionError extends PowerPointMCPError { constructor(slideIndex: number, transitionType: string); } export declare class ThemeError extends PowerPointMCPError { constructor(themeName: string); } export declare class MasterSlideError extends PowerPointMCPError { constructor(masterSlideName: string); } export declare class MediaError extends PowerPointMCPError { constructor(mediaPath: string, reason: string); } export declare class HyperlinkError extends PowerPointMCPError { constructor(url: string, reason: string); } export declare class CommentError extends PowerPointMCPError { constructor(commentId: string, reason: string); } export declare class ElementNotFoundError extends PowerPointMCPError { constructor(elementId: string, slideIndex: number); } export declare class MemoryLimitError extends PowerPointMCPError { constructor(operation: string); } export declare class TimeoutError extends PowerPointMCPError { constructor(operation: string, timeoutMs: number); } export declare class ConcurrentAccessError extends PowerPointMCPError { constructor(filePath: string); } import { z } from 'zod'; export declare function handleZodError(error: z.ZodError, _operation: string): ValidationError; export declare function handleFileSystemError(error: NodeJS.ErrnoException, filePath: string, operation: string): PowerPointMCPError; export declare function isRetryableError(error: PowerPointMCPError): boolean; export declare function getErrorSeverity(error: PowerPointMCPError): 'low' | 'medium' | 'high' | 'critical'; export interface ErrorResponse { success: false; error: { code: string; message: string; statusCode: number; severity: string; retryable: boolean; timestamp: string; }; } export declare function formatErrorResponse(error: PowerPointMCPError): ErrorResponse; export declare function formatUnknownError(error: unknown, _operation: string): ErrorResponse; //# sourceMappingURL=errors.d.ts.map