import { ValidateMessages } from 'rc-field-form/lib/interface';
interface Locale {
    Form?: {
        optional?: string;
        defaultValidateMessages: ValidateMessages;
    };
}
declare type LocaleComponent = keyof Locale;
export declare function useLocaleReceiver<T extends LocaleComponent>(componentName: T, defaultLocale?: Locale[T] | Function): [Locale[T]];
export {};
