import { AnchorHTMLAttributes } from 'react';
import { ButtonHTMLAttributes } from 'react';
import { ComponentPropsWithoutRef } from 'react';
import { CSSProperties } from 'react';
import { DialogHTMLAttributes } from 'react';
import { ElementType } from 'react';
import { FocusEvent as FocusEvent_2 } from 'react';
import { HTMLAttributes } from 'react';
import { InputHTMLAttributes } from 'react';
import { JSX } from 'react';
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
import { MouseEvent as MouseEvent_2 } from 'react';
import { PointerEvent as PointerEvent_2 } from 'react';
import { ReactElement } from 'react';
import { ReactNode } from 'react';
import { ReactPortal } from 'react';
import { Ref } from 'react';
import { RefObject } from 'react';
import { SelectHTMLAttributes } from 'react';
import { SVGAttributes } from 'react';
import { SVGProps } from 'react';
import { TextareaHTMLAttributes } from 'react';
/** Sections behind headers that open and close: one at a time (`single`) or
any number (`multiple`). The arrow keys move between the headers. */
export declare function Accordion({ ref, type, value: valueProp, defaultValue, onValueChange, headingLevel, className, onKeyDown, children, ...rest }: AccordionProps): JSX.Element;
/** One section of an `Accordion`: its header and the content it opens. */
export declare function AccordionItem({ ref, value, title, disabled, className, children, ...rest }: AccordionItemProps): JSX.Element;
/** The props of `AccordionItem`: a div's attributes, with `title` taking the
header's node instead of the HTML attribute. */
export declare interface AccordionItemProps extends Omit, "title">, RefProp {
/** What names the section in the accordion's `value`. */
value: string;
/** The header's text. It names the section's region too. */
title: ReactNode;
/** A section that cannot be opened now; its header stays in the list. */
disabled?: boolean;
}
/** The props of `Accordion`. */
export declare interface AccordionProps extends Omit, "onChange" | "defaultValue">, RefProp {
/** `single` keeps at most one section open, `multiple` any number. */
type?: "single" | "multiple";
/** Controlled: the values of the open sections. A list for both types, so
that switching the type changes nothing else. */
value?: readonly string[];
/** Uncontrolled: the sections open at the start. */
defaultValue?: readonly string[];
/** Reports the open sections after a header's click. Controlled, the
accordion follows once `value` does; uncontrolled it is a message. */
onValueChange?: (value: string[]) => void;
/** The level of the heading each header stands in - the one that fits the
page's outline. */
headingLevel?: 2 | 3 | 4 | 5 | 6;
}
/**
* The age of an as-of time at the reference time, in milliseconds.
*
* Never negative: an as-of time in the future is real - the clocks of source
* and screen drift apart - and does not mean that a value is about to become
* true, but that it is true right now. It counts as zero old.
*
* `null` where there is no computable age: without an as-of time there is
* none.
*/
export declare function age(asOf: FreshnessInstant, now: FreshnessInstant): number | null;
/** A message that stays put in the page - for what a toast would carry away
too soon. Warning and danger interrupt the screen reader, the other tones
report politely. */
export declare function Alert({ ref, tone, title, actions, onDismiss, dismissLabel, className, children, ...rest }: AlertProps): JSX.Element;
/** The props of `Alert`: a div's attributes, with `title` taking a heading
node instead of the HTML attribute. */
export declare interface AlertProps extends Omit, "title">, RefProp {
/** How urgent the message is. Only `warning` and `danger` interrupt the
screen reader - the other two report politely. */
tone?: AlertTone;
/** Heading; without it the body text carries the message on its own. */
title?: ReactNode;
/** Actions below the text, e.g. "Try again". */
actions?: ReactNode;
/** Shows a dismiss cross and calls this. */
onDismiss?: () => void;
/** Label of the dismiss cross.
@default the wording's "Close message" */
dismissLabel?: string;
}
/** How urgent an alert is; it also decides whether a screen reader is
interrupted. */
export declare type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
/** @deprecated since 0.58 - use PopoverAlign. */
export declare type Align = PopoverAlign;
/** Every loaded branch with content. Empty ones stay out because expanding
them showed nothing; unloaded ones stay out because one click would
otherwise trigger a thousand requests (ADR-0005). */
export declare function allBranches(roots: readonly K[], reader: NodeReader): S[];
/** The chevron that expands and collapses a branch. Drawn pointing right;
rotate it by 90 degrees for an open branch. */
export declare function AngleGlyph({ ref, size, ...rest }: GlyphProps): JSX.Element;
/**
* The library's one voice: says `text` in a polite live region, for what
* happened without a visible change in the place a reader is at - a copy made,
* a count after a filter. Use it instead of a region of your own: there is one
* region, so two announcements never speak over each other.
*
* Says `text` once announcements have rested for `ANNOUNCE_REST`; a later call
* within the rest replaces an earlier one.
*
* `at` is the element that speaks. Inside a modal `