import { Component, ReactNode } from 'react';
import { LocaleType } from '../locale';
export interface ConfigProviderProps {
    locale?: LocaleType;
    disablePortal?: boolean;
    children: any;
}
interface PortalItem {
    element: ReactNode;
    onHide?: () => void;
}
interface InnerPortalItem extends PortalItem {
    id: string;
}
interface ConfigProviderState {
    portals: InnerPortalItem[];
}
declare class ConfigProvider extends Component<ConfigProviderProps, ConfigProviderState> {
    static Consumer: ({ children }: {
        children: any;
    }) => JSX.Element;
    constructor(props: any);
    componentDidMount(): void;
    componentDidUpdate(prevProps: ConfigProviderProps): void;
    componentWillUnmount(): void;
    addPortal(item: PortalItem): () => void;
    render(): JSX.Element;
}
export default ConfigProvider;
