import { PayloadAction } from '@reduxjs/toolkit';

export type ISharedDatasourcesState = {
    state: 'loading' | 'loaded' | 'error';
    sources: {
        [key: string]: datasources.ICreateDataSource[];
    };
    error?: string;
};
declare const stateSlice: import('@reduxjs/toolkit').Slice<ISharedDatasourcesState, {
    addEmptyNamespace(state: import('immer/dist/internal').WritableDraft<ISharedDatasourcesState>, action: PayloadAction<{
        name: string;
    }>): void;
}, "shared-datasources">;
export declare const addEmptyNamespace: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
    name: string;
}, "shared-datasources/addEmptyNamespace">;
export default stateSlice;
