/** * Error thrown when a workflow already exists */ export declare class WorkflowExistsError extends Error { constructor(workflowName: string, targetPath: string); } /** * Error thrown when workflow name is invalid */ export declare class InvalidNameError extends Error { constructor(name: string); } /** * Error thrown when template file is not found */ export declare class TemplateNotFoundError extends Error { constructor(templateFile: string); } /** * Error thrown when output directory is invalid or inaccessible */ export declare class InvalidOutputDirectoryError extends Error { constructor(outputDir: string, reason?: string); } /** * Error thrown when folder already exists during initialization */ export declare class FolderAlreadyExistsError extends Error { folderPath: string; constructor(folderPath: string); } /** * Error thrown when user cancels initialization */ export declare class UserCancelledError extends Error { constructor(); } /** * Type-safe error wrapper that preserves original error with context */ export declare class ProjectInitError extends Error { readonly originalError: Error; readonly projectPath: string | null; constructor(message: string, originalError: Error, projectPath?: string | null); } /** * Error thrown when directory creation fails with project context */ export declare class DirectoryCreationError extends Error { readonly projectPath: string; /** * @param message - The error message * @param projectPath - The path where directory creation failed */ constructor(message: string, projectPath: string); } /** * Error thrown when a Claude CLI plugin command fails */ export declare class ClaudePluginError extends Error { readonly commandName: string; readonly originalError?: Error | undefined; /** * @param commandName - The Claude command that failed (e.g., 'plugin update outputai') * @param originalError - The underlying error from the command execution */ constructor(commandName: string, originalError?: Error | undefined); }