import actionNames from "../action-names";
import { Action } from "./types";
import { CheckStatus } from "../../../constants/checked-statuses";
/** These actions are mostly used in old UI */
export type ToggleStateResultAction = Action<typeof actionNames.TOGGLE_STATE_RESULT, {
    imageId: string;
    shouldBeOpened: boolean;
}>;
export declare const toggleStateResult: (payload: ToggleStateResultAction['payload']) => ToggleStateResultAction;
export type CloseSectionsAction = Action<typeof actionNames.CLOSE_SECTIONS, string[]>;
export declare const closeSections: (payload: CloseSectionsAction['payload']) => CloseSectionsAction;
export type SelectAllAction = Action<typeof actionNames.SELECT_ALL>;
export declare const selectAll: () => SelectAllAction;
export type DeselectAllAction = Action<typeof actionNames.DESELECT_ALL>;
export declare const deselectAll: () => DeselectAllAction;
export type ExpandAllAction = Action<typeof actionNames.VIEW_EXPAND_ALL>;
export declare const expandAll: () => ExpandAllAction;
export type ExpandErrorsAction = Action<typeof actionNames.VIEW_EXPAND_ERRORS>;
export declare const expandErrors: () => ExpandErrorsAction;
export type ExpandRetriesAction = Action<typeof actionNames.VIEW_EXPAND_RETRIES>;
export declare const expandRetries: () => ExpandRetriesAction;
export type CollapseAllAction = Action<typeof actionNames.VIEW_COLLAPSE_ALL>;
export declare const collapseAll: () => CollapseAllAction;
export type ToggleSuiteSectionAction = Action<typeof actionNames.TOGGLE_SUITE_SECTION, {
    suiteId: string;
    shouldBeOpened: boolean;
}>;
export declare const toggleSuiteSection: (payload: ToggleSuiteSectionAction['payload']) => ToggleSuiteSectionAction;
export type ToggleBrowserSectionAction = Action<typeof actionNames.TOGGLE_BROWSER_SECTION, {
    browserId: string;
    shouldBeOpened: boolean;
}>;
export declare const toggleBrowserSection: (payload: ToggleBrowserSectionAction['payload']) => ToggleBrowserSectionAction;
export type ToggleBrowserCheckboxAction = Action<typeof actionNames.TOGGLE_BROWSER_CHECKBOX, {
    suiteBrowserId: string;
    checkStatus: CheckStatus;
}>;
export declare const toggleBrowserCheckbox: (payload: ToggleBrowserCheckboxAction['payload']) => ToggleBrowserCheckboxAction;
export type ToggleSuiteCheckboxAction = Action<typeof actionNames.TOGGLE_SUITE_CHECKBOX, {
    suiteId: string;
    checkStatus: CheckStatus;
}>;
export declare const toggleSuiteCheckbox: (payload: ToggleSuiteCheckboxAction['payload']) => ToggleSuiteCheckboxAction;
export type ToggleGroupCheckboxAction = Action<typeof actionNames.TOGGLE_GROUP_CHECKBOX, {
    browserIds: string[];
    checkStatus: CheckStatus;
}>;
export declare const toggleGroupCheckbox: (payload: ToggleGroupCheckboxAction['payload']) => ToggleGroupCheckboxAction;
export type UpdateBottomProgressBarAction = Action<typeof actionNames.UPDATE_BOTTOM_PROGRESS_BAR, {
    currentRootSuiteId: string;
}>;
export declare const updateBottomProgressBar: (payload: UpdateBottomProgressBarAction['payload']) => UpdateBottomProgressBarAction;
export type ToggleTestsGroupAction = Action<typeof actionNames.TOGGLE_TESTS_GROUP, {
    browserIds: string[];
    resultIds: string[];
    isActive: boolean;
}>;
export declare const toggleTestsGroup: (payload: ToggleTestsGroupAction['payload']) => ToggleTestsGroupAction;
export type ChangeTestRetryAction = Action<typeof actionNames.CHANGE_TEST_RETRY, {
    browserId: string;
    retryIndex: number;
    suitesPage?: {
        treeNodeId: string;
    };
}>;
export declare const changeTestRetry: (result: ChangeTestRetryAction['payload']) => ChangeTestRetryAction;
export type SuiteTreeStateAction = ToggleStateResultAction | CloseSectionsAction | ExpandAllAction | SelectAllAction | DeselectAllAction | ExpandErrorsAction | ExpandRetriesAction | CollapseAllAction | ToggleSuiteSectionAction | ToggleBrowserSectionAction | ToggleBrowserCheckboxAction | ToggleSuiteCheckboxAction | ToggleGroupCheckboxAction | UpdateBottomProgressBarAction | ToggleTestsGroupAction | ChangeTestRetryAction;
