/// <reference types="react" />
export type ViewTransitionHandle = {
    replace(children: React.ReactNode): void;
};
/**
 * [experimental]: This component can use both ref or props to toggle transition.
 */
export declare const ViewTransition: import("react").ForwardRefExoticComponent<{
    children?: React.ReactNode;
    old?: React.ReactNode;
    new?: React.ReactNode;
    as?: keyof JSX.IntrinsicElements | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "children" | "old" | "new"> & import("react").RefAttributes<ViewTransitionHandle>>;
