import { ScreenshotData } from '../../typings'; import { ImageDiffResult } from '../../api/typings'; export interface ReducerState { screenshots: ScreenshotData[]; imageDiffResults: ImageDiffResult[]; pauseDeleteImageDiffResult: boolean; } export type Action = { type: 'setScreenshots'; screenshots: ScreenshotData[]; } | { type: 'setImageDiffResults'; imageDiffResults: ImageDiffResult[]; } | { type: 'addImageDiffResult'; imageDiffResult: ImageDiffResult; } | { type: 'removeImageDiffResult'; screenshotId: string; } | { type: 'removePassedImageDiffResult'; } | { type: 'updateImageDiffResult'; imageDiffResult: ImageDiffResult; } | { type: 'addScreenshot'; screenshot: ScreenshotData; } | { type: 'removeScreenshot'; screenshotId: string; } | { type: 'removeStoryScreenshots'; } | { type: 'changeIndex'; oldIndex: number; newIndex: number; } | { type: 'pauseDeleteImageDiffResult'; state: boolean; } | { type: 'deleteScreenshot'; screenshotId: string; }; export declare const initialState: ReducerState; export declare function reducer(state: ReducerState, action: Action): ReducerState;