import { default as React } from 'react'; export type As> = React.ElementType; export type PropsOf = React.ComponentPropsWithoutRef & { as: T; }; export type Placement = 'bottom-end' | 'bottom-start' | 'top-end' | 'top-start' | 'end-bottom' | 'end-top'; export declare function debugWarning(text: string): void; type Names = string | undefined | null | boolean; /** * Utility for conditionally merging classNames together. * @example * classNames('foo', 'bar'); => 'foo bar' * @example * classnames(false && 'foo', 'bar'); => 'bar' */ export declare function classNames(...names: Names[]): string; export declare function getStyleFromPlacement(placement: Placement): { left: string; top: string; bottom?: undefined; right?: undefined; } | { left: string; bottom: string; top?: undefined; right?: undefined; } | { right: string; left: string | number; bottom: string; top?: undefined; } | { right: string; left: string | number; top: string; bottom?: undefined; }; export declare class UnknownVariantError extends Error { constructor(variant: never); } export declare class UnknownSizeError extends Error { constructor(size: never); } export {}; //# sourceMappingURL=utils.d.ts.map