import { IModal } from '@ws-ui/shared';
import { ICloseModalAction, ICreateModalAction, IEditModalAction, IRemoveModalAction } from './types';

export interface IModalsState {
    list: IModal[];
}
declare const stateSlice: import('@reduxjs/toolkit').Slice<IModalsState, {
    createModal: (state: import('immer/dist/internal').WritableDraft<IModalsState>, action: ICreateModalAction) => void;
    editModal: (state: import('immer/dist/internal').WritableDraft<IModalsState>, action: IEditModalAction) => void;
    removeModal: (state: import('immer/dist/internal').WritableDraft<IModalsState>, action: IRemoveModalAction) => void;
    closeModal: (state: import('immer/dist/internal').WritableDraft<IModalsState>, action: ICloseModalAction) => void;
}, "modals">;
export declare const createModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<IModal, "modals/createModal">, removeModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "modals/removeModal">, closeModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    id: string;
    reason?: import('@ws-ui/shared').ModalCloseReason | undefined;
}, "modals/closeModal">, editModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    id: string;
} & Partial<Pick<IModal, "views" | "title">>, "modals/editModal">;
export default stateSlice;
