import { AxiosInstance, AxiosPromise, AxiosRequestConfig } from 'axios'; import { ReactNode } from 'react'; import { LovConfig } from '../../pro/lib/lov/Lov'; import { RecordStatus } from '../../pro/lib/data-set/enum'; import { expandInconProps, TablePaginationConfig, TableQueryBarHook } from '../../pro/lib/table/Table'; import { ValidationMessages } from '../../pro/lib/validator/Validator'; import { ButtonProps } from '../../pro/lib/button/Button'; import { SpinProps } from 'dwt-ui/lib/spin'; import { TableQueryBarType } from '../../pro/lib/table/enum'; import { TransportHookProps, TransportProps } from '../../pro/lib/data-set/Transport'; import DataSet from '../../pro/lib/data-set/DataSet'; import { FeedBack } from '../../pro/lib/data-set/FeedBack'; import Record from '../../pro/lib/data-set/Record'; import { CacheOptions } from '../../pro/lib/_util/Cache'; import { LabelLayout } from '../../pro/lib/form/enum'; import { ButtonColor, FuncType } from '../../pro/lib/button/enum'; export declare type Status = { [RecordStatus.add]: string; [RecordStatus.update]: string; [RecordStatus.delete]: string; }; export declare type renderEmptyHandler = (componentName?: string) => ReactNode; export declare type Formatter = { jsonDate?: string | null; date?: string; dateTime?: string; time?: string; year?: string; month?: string; week?: string; }; export declare type Config = { prefixCls?: string; proPrefixCls?: string; iconfontPrefix?: string; ripple?: boolean; lookupCache?: CacheOptions; lookupUrl?: string | ((code: string) => string); lookupAxiosMethod?: string; lookupAxiosConfig?: AxiosRequestConfig | ((props: { params?: any; dataSet?: DataSet; record?: Record; lookupCode?: string; }) => AxiosRequestConfig); lookupBatchAxiosConfig?: (codes: string[]) => AxiosRequestConfig; lovDefineUrl?: string | ((code: string) => string); lovDefineAxiosConfig?: AxiosRequestConfig | ((code: string) => AxiosRequestConfig); lovQueryUrl?: string | ((code: string, lovConfig: LovConfig | undefined, props: TransportHookProps) => string); lovQueryAxiosConfig?: AxiosRequestConfig | ((code: string, lovConfig: LovConfig | undefined, props: TransportHookProps) => AxiosRequestConfig); axios?: AxiosInstance; feedback?: FeedBack; dataKey?: string; totalKey?: string; statusKey?: string; tlsKey?: string; status?: Status; labelLayout?: LabelLayout; queryBar?: TableQueryBarType | TableQueryBarHook; tableBorder?: boolean; tableHighLightRow?: boolean; tableRowHeight?: 'auto' | number; tableColumnResizable?: boolean; tableExpandIcon?: (props: expandInconProps) => ReactNode; tableSpinProps?: SpinProps; tableButtonProps?: ButtonProps; tableCommandProps?: ButtonProps; pagination?: TablePaginationConfig | false; modalSectionBorder?: boolean; modalOkFirst?: boolean; modalButtonProps?: ButtonProps; buttonFuncType?: FuncType; buttonColor?: ButtonColor; renderEmpty?: renderEmptyHandler; defaultValidationMessages?: ValidationMessages; transport?: TransportProps; icons?: { [key: string]: string[]; } | string[]; generatePageQuery?: (pageParams: { page?: number; pageSize?: number; sortName?: string; sortOrder?: string; }) => object; formatter?: Formatter; }; export declare type ConfigKeys = keyof Config; export declare function getConfig(key: ConfigKeys): any; export declare function getPrefixCls(suffixCls: string, customizePrefixCls?: string): string; export declare function getProPrefixCls(suffixCls: string, customizePrefixCls?: string): string; export default function configure(config: Config): void;