/**
 * Copyright (c) Paymium.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root of this projects source tree.
 */
import { PropsWithChildren, RefAttributes } from 'react';
import { FloatingConfig } from './context';
export type FloatingProps = PropsWithChildren & {
    /**
     * if false, press on overlay not close the modal
     */
    closeOverlayPress?: boolean;
    /**
     * remove scroll behavior
     * @default true
     */
    removeScroll?: boolean;
    /**
     * wait in ms for hide content on exiting (use for animate)
     * @default true
     */
    wait?: number;
    /**
     * Initial value for uncontrolled state
     */
    defaultValue?: boolean;
    /**
     * Value for controlled state
     */
    value?: boolean;
    /**
     * Controlled state onChange handler
     */
    onChange?: (_p: boolean) => void;
    /**
     * If false, not render in portal
     */
    portal?: boolean;
} & Partial<Pick<FloatingConfig, 'triggerStrategy' | 'enabled'>>;
export type FloatingRef = {
    close: () => void;
    open: () => void;
};
export declare const FloatingRoot: import("react").NamedExoticComponent<{
    children?: import("react").ReactNode | undefined;
} & {
    /**
     * if false, press on overlay not close the modal
     */
    closeOverlayPress?: boolean;
    /**
     * remove scroll behavior
     * @default true
     */
    removeScroll?: boolean;
    /**
     * wait in ms for hide content on exiting (use for animate)
     * @default true
     */
    wait?: number;
    /**
     * Initial value for uncontrolled state
     */
    defaultValue?: boolean;
    /**
     * Value for controlled state
     */
    value?: boolean;
    /**
     * Controlled state onChange handler
     */
    onChange?: (_p: boolean) => void;
    /**
     * If false, not render in portal
     */
    portal?: boolean;
} & Partial<Pick<FloatingConfig, "triggerStrategy" | "enabled">> & RefAttributes<FloatingRef>>;
//# sourceMappingURL=Root.d.ts.map