import { status } from '@synnaxlabs/x';
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
import { Flex } from '../flex';
import { Generic } from '../generic';
import { text } from './core';
type AnchorProps = ComponentPropsWithoutRef<"a">;
export type Variant = "prose" | "code" | "keyboard" | "link";
export type Overflow = "ellipsis" | "clip" | "nowrap" | "wrap";
export interface ExtensionProps extends Flex.BoxExtensionProps, Pick<AnchorProps, "href" | "target" | "rel"> {
    level?: text.Level;
    children?: ReactNode;
    weight?: text.Weight;
    variant?: Variant;
    autoFormatHref?: boolean;
    defaultEl?: Generic.ElementType;
    overflow?: Overflow;
    status?: status.Variant;
}
export type TextProps<E extends Generic.ElementType = "p"> = Omit<Generic.OptionalElementProps<E>, "color"> & ExtensionProps;
export declare const isSquare: (children: ReactNode) => boolean;
export declare const Text: <E extends Generic.ElementType = "p">({ level, className, style, weight, defaultEl, el, variant, overflow, href, autoFormatHref, status, ...rest }: TextProps<E>) => ReactElement;
export {};
//# sourceMappingURL=Text.d.ts.map