/** * Base error class for all Story Diff errors. */ export declare class StoryDiffError extends Error { constructor(message: string); } /** * Thrown when StoryDiff is used before calling setup(). */ export declare class NotInitializedError extends StoryDiffError { constructor(); } /** * Thrown when an unknown viewport name is used. */ export declare class ViewportNotFoundError extends StoryDiffError { constructor(viewport: string, available: string[]); } /** * Thrown when images have different dimensions and allowSizeMismatch is false. */ export declare class SizeMismatchError extends StoryDiffError { constructor(actualWidth: number, actualHeight: number, expectedWidth: number, expectedHeight: number); } /** * Thrown when a visual regression is detected. */ export declare class VisualRegressionError extends StoryDiffError { readonly snapshotName: string; readonly diffPercentage: number; readonly diffPixels: number; readonly snapshotPath: string; readonly diffPath: string | null; constructor(snapshotName: string, diffPercentage: number, diffPixels: number, snapshotPath: string, diffPath: string | null); } /** * Thrown when a baseline image is missing and failOnMissingBaseline is true. */ export declare class BaselineMissingError extends StoryDiffError { readonly snapshotName: string; readonly snapshotPath: string; constructor(snapshotName: string, snapshotPath: string); } /** * Thrown when Storybook cannot be reached or fails to load. */ export declare class StorybookConnectionError extends StoryDiffError { constructor(url: string, detail?: string); } /** * Thrown when StoryDiff cannot find a root configuration file. */ export declare class ConfigNotFoundError extends StoryDiffError { constructor(fileNames: readonly string[]); } /** * Thrown when a discovered configuration file cannot be parsed or normalised. */ export declare class InvalidConfigError extends StoryDiffError { constructor(filePath: string, detail: string); } //# sourceMappingURL=errors.d.ts.map