import { PayloadAction } from '@reduxjs/toolkit';
import { ITemplatedGroup, ITemplatedGroupItem, IWebformEditorState, TAddComponentAction, TInspectAction, TRemoveComponentAction, TToggleInspectorAction } from './types';
import { IComponentTemplate, TDatasourceTheme } from '@ws-ui/shared';
import { WT_FLAGS_KEYS } from './private';
export declare const FLAGS_INIT_STATE: {
    [WT_FLAGS_KEYS.SIDEBAR_SECTION_RESIZABLE]: boolean;
};
declare const stateSlice: import('@reduxjs/toolkit').Slice<IWebformEditorState, {
    toggleInspector: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: TToggleInspectorAction) => void;
    inspect: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: TInspectAction) => void;
    addComponent: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: TAddComponentAction) => void;
    editComponent: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: PayloadAction<{
        id: string;
        changes: Partial<IComponentTemplate>;
    }>) => void;
    removeComponent: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: TRemoveComponentAction) => void;
    setSelectedGroup: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: {
        payload: {
            selectedGroup: string;
        };
    }) => void;
    setTemplatesData: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: {
        payload: ITemplatedGroup[];
    }) => void;
    setTemplateData: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: {
        payload: {
            group: string;
            components: ITemplatedGroupItem[];
        };
    }) => void;
    setDatasourcesTheme: (state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: {
        payload: TDatasourceTheme;
    }) => void;
    setWebformsFlag(state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: PayloadAction<{
        [key: string]: any;
    }>): void;
    setI18nCurrent(state: import('immer/dist/internal').WritableDraft<IWebformEditorState>, action: PayloadAction<{
        current: string;
    }>): void;
}, "webforms">;
export declare const toggleInspector: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    type: "css" | "datasource";
}, "webforms/toggleInspector">, inspect: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('./types').TToggleInspectorPayload, "webforms/inspect">, addComponent: import('@reduxjs/toolkit').ActionCreatorWithPayload<IComponentTemplate, "webforms/addComponent">, editComponent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    id: string;
    changes: Partial<IComponentTemplate>;
}, "webforms/editComponent">, removeComponent: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "webforms/removeComponent">, setSelectedGroup: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    selectedGroup: string;
}, "webforms/setSelectedGroup">, setTemplatesData: import('@reduxjs/toolkit').ActionCreatorWithPayload<ITemplatedGroup[], "webforms/setTemplatesData">, setTemplateData: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    group: string;
    components: ITemplatedGroupItem[];
}, "webforms/setTemplateData">, setDatasourcesTheme: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | number, "webforms/setDatasourcesTheme">, setWebformsFlag: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    [key: string]: any;
}, "webforms/setWebformsFlag">, setI18nCurrent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    current: string;
}, "webforms/setI18nCurrent">;
export default stateSlice;
