import React from 'react';
import type { ElementType } from 'react';
import { DistributiveOmit, RefOf } from '../types';
type Merge = DistributiveOmit & B;
type ConditionalMap = {
default: ElementType;
[key: string]: ElementType;
};
/**
* Утилита для создания компонента, который выбирает реализацию по `appearance`
* и при этом сохраняет корректную типизацию пропсов и ref для каждого варианта.
*/
export declare function createConditionalComponent(components: T): React.ForwardRefExoticComponent<(React.PropsWithoutRef>, {
appearance?: "default";
}>> | React.PropsWithoutRef<{ [K in Exclude]: Merge>, {
appearance: K;
}>; }[Exclude]>) & React.RefAttributes>>;
export {};
//# sourceMappingURL=createConditionalComponent.d.ts.map