import React from 'react';
import { DrawerProps } from 'antd';
import { PisellModalProps } from '../pisellModal';
import { PortalProps } from './components/Portal';
import { PisellContextType } from "../pisell-config-provider/context";
export declare type RenderType = 'modal' | 'drawer' | 'portal' | '';
export interface PisellContainerProps<T> {
    /** 平台 */
    platform?: PisellContextType['platform'];
    /** 渲染类型
     * "modal" 弹窗
     * "drawer" 抽屉
     * "portal" 渲染到指定dom位置
     * undefined | "" | null 渲染到当前位置
     * */
    renderType?: T;
    /** 对应组件的props */
    props?: T extends 'modal' ? PisellModalProps : T extends 'drawer' ? DrawerProps : T extends 'portal' ? PortalProps : any;
    children?: React.ReactNode;
}
declare const PisellContainer: <T extends RenderType>(props: PisellContainerProps<T>) => any;
export default PisellContainer;
