import { Context } from '../Views/Question/Params/Utils'; import { DatasetParam } from '../Utils/WdkModel'; import { StrategySummary } from "../Utils/WdkUser"; declare type Payload = Context & T; export declare type Action = SetBasketCountAction | SetFileAction | SetFileParserAction | SetIdListAction | SetLoadingIdListAction | SetSourceTypeAction | SetStrategyIdAction | SetStrategyListAction | SetUrlAction | SetUrlParserAction; export declare const SET_SOURCE_TYPE = "dataset-param/set-source-type"; export interface SetSourceTypeAction { type: typeof SET_SOURCE_TYPE; payload: Payload<{ sourceType: 'idList' | 'file' | 'basket' | 'strategy' | 'url'; }>; } export declare function setSourceType(payload: SetSourceTypeAction['payload']): SetSourceTypeAction; export declare const SET_ID_LIST = "dataset-param/set-id-list"; export interface SetIdListAction { type: typeof SET_ID_LIST; payload: Payload<{ idList?: string; }>; } export declare function setIdList(payload: SetIdListAction['payload']): SetIdListAction; export declare const SET_LOADING_ID_LIST = "dataset-param/set-loading-id-list"; export interface SetLoadingIdListAction { type: typeof SET_LOADING_ID_LIST; payload: Payload<{ loadingIdList?: boolean; }>; } export declare function setLoadingIdList(payload: SetLoadingIdListAction['payload']): SetLoadingIdListAction; export declare const SET_FILE = "dataset-param/set-file"; export interface SetFileAction { type: typeof SET_FILE; payload: Payload<{ file?: File | null; }>; } export declare function setFile(payload: SetFileAction['payload']): SetFileAction; export declare const SET_STRATEGY_LIST = "dataset-param/set-strategy-list"; export interface SetStrategyListAction { type: typeof SET_STRATEGY_LIST; payload: Payload<{ strategyList: StrategySummary[]; }>; } export declare function setStrategyList(payload: SetStrategyListAction['payload']): SetStrategyListAction; export declare const SET_STRATEGY_ID = "dataset-param/set-strategy-id"; export interface SetStrategyIdAction { type: typeof SET_STRATEGY_ID; payload: Payload<{ strategyId: number; }>; } export declare function setStrategyId(payload: SetStrategyIdAction['payload']): SetStrategyIdAction; export declare const SET_BASKET_COUNT = "dataset-param/set-basket-count"; export interface SetBasketCountAction { type: typeof SET_BASKET_COUNT; payload: Payload<{ basketCount: number; }>; } export declare function setBasketCount(payload: SetBasketCountAction['payload']): SetBasketCountAction; export declare const SET_FILE_PARSER = "dataset-param/set-file-parser"; export interface SetFileParserAction { type: typeof SET_FILE_PARSER; payload: Payload<{ fileParser: DatasetParam['parsers'][number]['name']; }>; } export declare function setFileParser(payload: SetFileParserAction['payload']): SetFileParserAction; export declare const SET_URL = "dataset-param/set-url"; export interface SetUrlAction { type: typeof SET_URL; payload: Payload<{ url?: string; }>; } export declare function setUrl(payload: SetUrlAction['payload']): SetUrlAction; export declare const SET_URL_PARSER = "dataset-param/set-url-parser"; export interface SetUrlParserAction { type: typeof SET_URL_PARSER; payload: Payload<{ urlParser: DatasetParam['parsers'][number]['name']; }>; } export declare function setUrlParser(payload: SetUrlParserAction['payload']): SetUrlParserAction; export {}; //# sourceMappingURL=DatasetParamActions.d.ts.map