import { StoryAction, PlaywrightDataStories, ActionSchemaList, ActionSet } from '../../typings'; export interface ReducerState { actionSchema: ActionSchemaList; expandedActions: { [k: string]: boolean; }; stories: PlaywrightDataStories; initialised: boolean; currentActionSets: string[]; orgEditingActionSet?: ActionSet & { isNew?: boolean; }; } export type Action = { type: 'deleteActionSetAction'; actionId: string; actionSetId: string; storyId: string; } | { type: 'moveActionSetAction'; oldIndex: number; newIndex: number; actionSetId: string; storyId: string; } | { type: 'sortActionSets'; oldIndex: number; newIndex: number; storyId: string; } | { type: 'addActionSetList'; actionSets: ActionSet[]; storyId: string; } | { type: 'setScreenShotActionSets'; actionSets: ActionSet[]; storyId: string; } | { type: 'setCurrentActionSets'; actionSetIds: string[]; } | { type: 'addActionSet'; actionSet: ActionSet; storyId: string; selected: boolean; new?: boolean; } | { type: 'deleteActionSet'; actionSetId: string; storyId: string; } | { type: 'deleteTempActionSets'; storyId: string; } | { type: 'clearCurrentActionSets'; } | { type: 'saveActionSet'; actionSet: ActionSet; storyId: string; } | { type: 'toggleCurrentActionSet'; actionSetId: string; } | { type: 'setActionSetTitle'; title: string; storyId: string; actionSetId: string; } | { type: 'setActionSchema'; actionSchema: ActionSchemaList; } | { type: 'toggleActionExpansion'; actionId: string; } | { type: 'toggleSubtitleItem'; actionId: string; actionOptionPath: string; storyId: string; actionSetId: string; } | { type: 'clearActionExpansion'; } | { type: 'setActionOptions'; actionId: string; objPath: string; val: unknown; storyId: string; actionSetId: string; } | { type: 'cancelEditActionSet'; storyId: string; } | { type: 'addActionSetAction'; action: StoryAction; storyId: string; actionSetId: string; } | { type: 'editActionSet'; actionSet: ActionSet; }; export declare const initialState: ReducerState; export declare function mainReducer(state: ReducerState, action: Action): ReducerState; export declare function actionReducer(state: ReducerState, action: Action): ReducerState; export declare const reducer: (prevState: any, value: any) => any;