import { Factory } from '../../core';
import { PortalProps } from './Portal';
export interface OptionalPortalProps extends PortalProps {
    /**
     * Determines whether children should be rendered inside Portal.
     * When false, children are rendered as regular React children.
     *
     * Note: In test environment, Portal is always disabled regardless of this value.
     *
     * @default true
     */
    withinPortal?: boolean;
}
export type OptionalPortalFactory = Factory<{
    props: OptionalPortalProps;
    ref: HTMLDivElement;
}>;
export declare const OptionalPortal: import("../..").MantineComponent<{
    props: OptionalPortalProps;
    ref: HTMLDivElement;
}>;
