import React, { FC } from 'react'; import { PropSelectProps } from '../ProSelect/propsType'; import { ProModalSelectPropsType } from '../ProForm/components/combination/ProModalSelect/propsType'; import { AddressProps } from '../ProForm/components/combination/ProAddressBar/propsType'; import { ProEnumConfig } from '../ProEnum/propsType'; export interface ProConfigState { locale?: string; ProEnum?: Partial; ProSelect?: Partial & Record; ProModalSelect?: Partial & Record; ProAddressBar?: Partial & Record; [key: string]: any; } interface ConfigContext { state: ProConfigState; dispatch: React.Dispatch; } export declare const ProConfigContext: React.Context; export declare function useProConfig(): ConfigContext; export declare function useProConfig(name: keyof ConfigContext['state']): ConfigContext['state'][keyof ConfigContext['state']]; export declare const ProConfigProvider: FC<{ value: ProConfigState; locale?: string; }>; export default ProConfigProvider;