import type { AnyAction } from 'redux'; import type { ThunkDispatch } from 'redux-thunk'; import type { Workflow } from '../constants/publishModes'; import type { BaseField, Config, ConfigWithDefaults, LocalBackend, UnknownField } from '../interface'; import type { RootState } from '../store'; export declare function applyDefaults(originConfig: Config): ConfigWithDefaults; export declare function parseConfig(data: string): Config; export declare function configLoaded(config: ConfigWithDefaults, originalConfig: Config): { readonly type: "CONFIG_SUCCESS"; readonly payload: { readonly config: ConfigWithDefaults; readonly originalConfig: Config; }; }; export declare function configLoading(): { readonly type: "CONFIG_REQUEST"; }; export declare function configFailed(err: Error): { readonly type: "CONFIG_FAILURE"; readonly error: "Error loading config"; readonly payload: Error; }; export declare function detectProxyServer(localBackend?: boolean | LocalBackend): Promise<{ proxyUrl?: undefined; publish_modes?: undefined; type?: undefined; } | { proxyUrl: string; publish_modes: Workflow[]; type: string; }>; export declare function handleLocalBackend(originalConfig: Config): Promise>; export declare function loadConfig(manualConfig: Config | undefined, onLoad: (config: ConfigWithDefaults) => unknown): (dispatch: ThunkDispatch) => Promise; export type ConfigAction = ReturnType;