import * as React from "react"; import type { TextProp, TypographyBlockProp } from "../../props/components/general.prop.js"; import type { TypographyEllipsisConfigProp } from "../../props/vocabulary/index.js"; export type { TextProp, TextProp as TextProps, HeadingProp, HeadingProp as HeadingProps, TypographyBlockProp, LinkProp, LinkProp as LinkProps, } from "../../props/components/general.prop.js"; /** How long the copy button shows its confirmed state. antd's value (`useCopyClick`). */ export declare const COPIED_RESET_MS = 3000; /** antd `getNode` — `true`/`undefined` take the default; `false` suppresses unless a DOM node is required. */ export declare function getNode(node: React.ReactNode | boolean | undefined, fallback: React.ReactNode, needDom?: boolean): React.ReactNode; /** antd `toCopyConfigList` — `false` suppresses BOTH states, otherwise index 0 = idle, 1 = copied. */ export declare function toCopyConfigList(value: React.ReactNode | false | undefined): (string | number | bigint | boolean | Iterable | Promise | React.ReactElement> | React.ReactPortal | null | undefined> | React.ReactElement> | React.ReactPortal | null | undefined)[] | readonly [false, false]; /** * antd `useMergedConfig` — `true` means "on, all defaults"; an object means "on, these overrides". * The boolean is the SUPPORT flag, so `copyable={false}` and `copyable={undefined}` are both off. */ export declare function useMergedConfig(propConfig: boolean | T | undefined, template?: Partial): [boolean, T]; /** * The clipboard write, antd's `_util/copy` reduced to the one path a modern browser takes. * * antd keeps a `document.execCommand("copy")` fallback for browsers without the async Clipboard * API. It is NOT ported: `execCommand` is deprecated, every browser in this package's support * matrix ships `navigator.clipboard`, and the fallback's failure mode is worse than none — it * reports success from a synchronous flag that a permission prompt can leave stale, so the UI * claims a copy that never happened. Here a refusal throws, `onCopy` never fires, and the button * never shows its confirmed state. */ export declare function writeClipboard(text: string, format: "text/plain" | "text/html" | undefined): Promise; /** * A tooltip that disappears entirely when its title is suppressed. * * antd wraps every action in ``; this library's Tooltip is the house primitive and is * composed (`Tooltip > TooltipTrigger > TooltipContent`), so the wrapper lives here. */ export declare function ActionTooltip({ title, children, }: { title: React.ReactNode; children: React.ReactNode; }): string | number | bigint | boolean | React.JSX.Element | Iterable | Promise | React.ReactElement> | React.ReactPortal | null | undefined> | null | undefined; /** * Text — the typographic primitive, and antd's `Typography.Text`. * * Use it INSTEAD of a hand-rolled ``. * Size is a step of the type scale (never a px); tone and weight are tokens. */ export declare const Text: React.ForwardRefExoticComponent, "color"> & Omit & { as?: "span" | "p" | "div" | "a" | "label" | "strong" | "em" | "small" | "code" | "kbd" | "dt" | "dd" | "caption" | "abbr"; asChild?: import("../../props/index.js").AsChildProp; link?: boolean; size?: import("../../props/index.js").TextSizeProp; tone?: import("../../props/index.js").TextToneProp; weight?: import("../../props/index.js").FontWeightProp; align?: import("../../props/index.js").TextAlignProp; truncate?: boolean; clamp?: number; ellipsis?: boolean | Omit; whitespace?: import("../../props/index.js").TextWhitespaceProp; break?: import("../../props/index.js").TextBreakProp; tabular?: boolean; decoration?: "none" | "underline" | "line-through"; chip?: boolean; mono?: boolean; htmlFor?: string; href?: string; target?: React.HTMLAttributeAnchorTarget; rel?: string; download?: React.AnchorHTMLAttributes["download"]; } & React.RefAttributes>; /** * Link — antd `Typography.Link`. * * `Text link` is the same affordance and is unchanged; `Link` is antd's anchor-by-default flavour * of it. It adds antd's `rel` guard: a `target="_blank"` with no explicit `rel` gets * `noopener noreferrer`, because the opened document otherwise keeps a live handle on * `window.opener`. antd restricts `ellipsis` to a boolean on `Link`, and that restriction is ported * by the type. */ export declare const Link: React.ForwardRefExoticComponent & { as?: "a" | "span"; ellipsis?: boolean; } & React.RefAttributes>; /** * Heading — h1..h4 sized from the `--heading-h*` tokens. `level` sets both the size token and the * semantic element; override the rendered element with `as` (e.g. a visual h2 that is a real

), * and override the SIZE alone with `size` — the same ten-step ladder `Text` reads, whose top three * steps are the display ramp a marketing hero needs (gh#826). * * antd's `Typography.Title` was a sibling until v32 retired the antd shims (#1223): `Heading` is * the one heading, and its `size` axis covers antd's fifth level. */ export declare const Heading: React.ForwardRefExoticComponent, "color"> & { level?: import("../../props/index.js").HeadingLevelProp; size?: import("../../props/index.js").TextSizeProp; as?: "h1" | "h2" | "h3" | "h4" | "div"; tone?: import("../../props/index.js").TextToneProp; align?: import("../../props/index.js").TextAlignProp; truncate?: boolean; weight?: import("../../props/index.js").FontWeightProp; } & React.RefAttributes>;