import { type ComponentPropsWithRef, type ComponentType } from "react";
import { type RenderMode } from "../../types.js";
/**
 * Returns a component that wraps components for different render modes and automatically chooses the correct one.
 * If component for current render mode is not defined, component for "view" mode is used.
 *
 * @param components - the components to choose from
 * @internal
 */
export declare function renderModeAware<T extends ComponentType<any>>(components: {
    view: T;
} & Partial<Record<RenderMode, T>>): ComponentType<ComponentPropsWithRef<T>>;
//# sourceMappingURL=renderModeAware.d.ts.map