import * as react from 'react'; import react__default, { PropsWithChildren } from 'react'; import { DisclosureProps, DisclosureGroupProps, DialogProps as DialogProps$1, ButtonProps as ButtonProps$1, CalendarProps, DateValue, CheckboxFieldProps, ValidationResult, CheckboxGroupProps as CheckboxGroupProps$1, DatePickerProps as DatePickerProps$1, FormProps, HeadingProps as HeadingProps$1, LinkProps as LinkProps$1, MenuItemProps as MenuItemProps$1, MenuItemRenderProps, MenuProps as MenuProps$1, Key, PopoverProps, ModalOverlayProps, ProgressBarProps as ProgressBarProps$1, RadioFieldProps, RadioGroupProps as RadioGroupProps$1, TagProps as TagProps$1, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, SeparatorProps as SeparatorProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextProps as TextProps$1, TextFieldProps as TextFieldProps$1, TimeValue, TimeFieldProps as TimeFieldProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, SwitchFieldProps, TooltipProps, NumberFieldProps as NumberFieldProps$1 } from 'react-aria-components'; export { DialogTrigger, MenuSection, Header as MenuSectionHeader, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components'; import { CalendarSelectionMode } from 'react-aria-components/Calendar'; export { CalendarSelectionMode } from 'react-aria-components/Calendar'; interface AccordionProps extends DisclosureProps { label?: string; } declare function Accordion({ label, children, ...props }: AccordionProps): react.JSX.Element; interface AccordionGroupProps extends DisclosureGroupProps { title?: string; titleElement?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; } declare function AccordionGroup({ title, titleElement, children, ...props }: AccordionGroupProps): react.JSX.Element; interface AlertBannerProps extends React.PropsWithChildren { size?: "small" | "medium"; layout?: "fixed" | "fluid"; variant?: "info" | "success" | "warning" | "danger" | "black"; isIconHidden?: boolean; isCloseable?: boolean; role?: React.AriaRole | undefined; customIcon?: React.ReactNode; onClose?: () => void; } declare function AlertBanner({ variant, size, layout, isIconHidden, isCloseable, role, onClose, children, customIcon, ...props }: AlertBannerProps): react.JSX.Element; interface AlertDialogProps extends DialogProps$1 { variant?: "info" | "confirmation" | "warning" | "error" | "destructive"; title?: string; isIconHidden?: boolean; isCloseable?: boolean; buttons?: React.ReactNode; } declare function AlertDialog({ children, variant, role, title, isCloseable, isIconHidden, buttons, ...props }: AlertDialogProps): react.JSX.Element; interface ButtonProps extends ButtonProps$1 { /** * Defaults to `medium`. `small` is shorter vertically. */ size?: "xsmall" | "small" | "medium" | "large"; /** * Defaults to `primary`. */ variant?: "primary" | "secondary" | "tertiary" | "link"; /** * For destructive/deletion actions. */ danger?: boolean; /** * If true, renders a square button intended for a single icon. */ isIconButton?: boolean; } declare function Button({ size, variant, danger, isIconButton, ...props }: ButtonProps): react.JSX.Element; interface ButtonGroupProps extends React.PropsWithChildren { orientation?: "horizontal" | "vertical"; alignment?: "start" | "center" | "end"; ariaLabel?: string | undefined; } declare function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps): react.JSX.Element; declare function Calendar({ visibleDuration, ...props }: CalendarProps): react.JSX.Element; interface CalloutProps extends React.PropsWithChildren { variant?: "lightGrey" | "lightBlue" | "lightGold" | "Blue" | "Grey" | "Black"; title?: string; description?: string; buttons?: React.ReactNode; role?: React.AriaRole | undefined; isLeftBorderDisabled?: boolean; } declare function Callout({ variant, title, description, buttons, role, isLeftBorderDisabled, children, ...props }: CalloutProps): react.JSX.Element; interface CheckboxProps extends CheckboxFieldProps { description?: string; errorMessage?: string | ((validation: ValidationResult) => string); } declare function Checkbox({ value, children, description, errorMessage, ...props }: CheckboxProps): react.JSX.Element; interface CheckboxGroupProps extends CheckboxGroupProps$1 { orientation?: "horizontal" | "vertical"; label?: string; description?: string; errorMessage?: string | ((validation: ValidationResult) => string); /** `flex-wrap` style property, defaults to `nowrap` */ flexWrap?: "nowrap" | "wrap" | "wrap-reverse"; } declare function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps): react.JSX.Element; interface DatePickerProps extends DatePickerProps$1 { size?: "small" | "medium"; isCalendarDisabled?: boolean; label?: string; description?: string; showFormatHelpText?: boolean; errorMessage?: string | ((validation: ValidationResult) => string); isBrowserLocaleUsed?: boolean; } declare function DatePicker({ size, label, description, errorMessage, showFormatHelpText, isCalendarDisabled, isBrowserLocaleUsed, ...props }: DatePickerProps): react.JSX.Element; interface DialogProps extends DialogProps$1 { isCloseable?: boolean; } declare function Dialog({ isCloseable, role, children, ...props }: DialogProps): react.JSX.Element; interface FooterLinksProps { /** * Title for the list of links - associated to the list of links as a `
` */ title: string; /** * Array of link elements (`` or ``) */ links: React.ReactElement[]; } /** * A titled list of links for use in the Footer. Rendered inside a `
` * with the `title` prop inside of the `
`. * @param {FooterLinksProps} props * @returns {React.ReactElement} */ declare function FooterLinks({ title, links }: FooterLinksProps): react.JSX.Element; interface FooterProps { /** * Land acknowledgement block (defaults to Gov.bc.ca land acknowledgement) */ acknowledgement?: React.ReactElement; /** * Logo slot (defaults to BC Gov horizontal logo) */ logo?: React.ReactElement; /** * Contact information block (defaults to Gov.bc.ca contact information) */ contact?: React.ReactElement; /** * Link list block (defaults to Gov.bc.ca link list). * * Pass the `` component for a styles-included list. */ links?: React.ReactElement; /** * Copyright string (defaults to current year) */ copyright?: string; /** * Hide the acknowledgement section */ hideAcknowledgement?: boolean; /** * Hide the logo, contact information, and links section */ hideLogoAndLinks?: boolean; /** * Hide the copyright string */ hideCopyright?: boolean; } /** * A `