import { PropsWithChildren } from 'react'; import { SafeOmit } from '../../.deps/utils/src'; import { TextAlign, TypographyAppearance } from '../../tokens/types'; import { SafeExtract, Variant } from '../../types'; /** @inheritdoc */ export interface TypographyOwnProps extends PropsWithChildren { /** * Text alignment. * @default 'left' */ align?: TextAlign; /** * Visual appearance of the text. */ appearance?: TypographyAppearance; /** * Additional class name. * @internal */ className?: string; /** * Adds a divider after the text. * @default false */ divider?: boolean; /** * Unique identifier. * * Useful for anchor links to headings. */ id?: string; /** * Truncate text with ellipsis. * The element must be either block or within flex or grid container. * @default false */ truncate?: boolean; /** * Sets text color variant */ variant?: SafeExtract; } export interface PublicTypographyProps extends SafeOmit { } /** * Builds the common visual props for typography components and forwards remaining props. */ export declare function getTypographyProps

({ className, id, appearance, align, variant, truncate, divider, children, ...rest }: P): Omit & { id: string | undefined; className: string; children: import('react').ReactNode; };