import type * as React from 'react';

/**
 * An icon slot. A string is the URL of an SVG file (for example
 * `assets/Icons/arrow_forward.svg`): it is painted as a CSS mask in the
 * current text colour, so it follows the theme. The URL must be same-origin
 * or served with CORS. A React node (for example an inline `<svg>` with
 * `fill="currentColor"`) is rendered as is. Icons are decorative
 * (`aria-hidden`); the label carries the meaning.
 */
export type IconSource = string | React.ReactNode;

/**
 * Button: Material 3 common button with SAME's shape (4px corners, flat,
 * 40px high inside a 48px touch target, `label-large` type).
 * Any other prop (aria-*, data-*, name, value, form…) is passed to the
 * rendered `<button>` or `<a>`; `ref` reaches that element.
 */
export interface ButtonProps {
  /**
   * `filled`: Growth Green fill, Deep Blue label. The primary action, at most
   * once per section. `outlined`: 1px `outline` border, `primary` label; the
   * secondary action. `text`: `primary` label, no container; low emphasis.
   * @default 'filled'
   */
  variant?: 'filled' | 'outlined' | 'text';
  /** One size only (40px high, 48px touch target). Reserved; leave it out. @default 'medium' */
  size?: 'medium';
  /** Disables the button. With `href`, the link loses its href, gets `aria-disabled="true"` and leaves the tab order. */
  disabled?: boolean;
  /** Optional 18px icon beside the label. */
  icon?: IconSource;
  /** Which side of the label the icon sits on. `end` suits forward arrows. @default 'start' */
  iconPosition?: 'start' | 'end';
  /** Renders an `<a href>` styled as a button. Use for navigation, not for actions. */
  href?: string;
  /** The `<button>` type. Ignored with `href`. @default 'button' */
  type?: 'button' | 'submit' | 'reset';
  /** Click handler. Not called while disabled. */
  onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
  /** The label: a short verb phrase in sentence case, e.g. "Pedir orçamento". */
  children: React.ReactNode;
  /** Stretches the button to its container's width. @default false */
  fullWidth?: boolean;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;

/**
 * TextField: Material 3 outlined text field with SAME's overrides: the label
 * sits above the field (no floating label), 56px high, `body-large` text,
 * 1px `outline` border and 4px corners, 2px `focus-ring` border on focus and,
 * on keyboard focus, a 2px `focus-ring` outline around the box.
 * An error shows a 2px border, the error icon and the message, all in
 * `error` (the error red, used only for errors); icon and words carry the
 * meaning, never the colour alone.
 * Any other prop (autoComplete, inputMode, maxLength, onBlur, aria-*…) is
 * passed to the `<input>` or `<textarea>`; `ref` reaches that element.
 */
export interface TextFieldProps {
  /** Visible label above the field, linked with `for`/`id`. Always give one. */
  label: React.ReactNode;
  /** Controlled value (pair with `onChange`). */
  value?: string;
  /** Uncontrolled initial value. */
  defaultValue?: string;
  /** Change handler; receives the native change event. */
  onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
  /** Example of the expected input. Never a replacement for the label. */
  placeholder?: string;
  /** Supporting text under the field, linked with `aria-describedby`. */
  helperText?: React.ReactNode;
  /**
   * Error state. A string is the error message and replaces `helperText`;
   * `true` marks the field invalid and keeps `helperText` as the message.
   * Sets `aria-invalid="true"`.
   */
  error?: string | boolean;
  /** Marks the field required (`required` attribute) and adds " *" to the label. */
  required?: boolean;
  /** Disables the field. */
  disabled?: boolean;
  /** Renders a `<textarea>` instead of an `<input>`. @default false */
  multiline?: boolean;
  /** Visible rows of a multiline field. @default 3 */
  rows?: number;
  /** Input type: text, email, tel, url, password, search, number… Ignored when multiline. @default 'text' */
  type?: string;
  /** Form field name. */
  name?: string;
  /** Element id. Generated when omitted; the helper text id is `<id>-support`. */
  id?: string;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;

/**
 * IconButton: Material 3 standard or outlined icon button with SAME's shape
 * (4px corners, never round, flat). 40px visible size inside a 48px touch
 * target, 24px icon, 2px `focus-ring` on keyboard focus. An icon has no text,
 * so `aria-label` is required. Pass `selected` (true or false) to make it a
 * toggle; it then gets `aria-pressed`.
 * Any other prop (aria-*, data-*, name, form…) is passed to the rendered
 * `<button>`; `ref` reaches that element.
 */
export interface IconButtonProps {
  /** The icon: an SVG file URL (painted in the current text colour) or a React node. See `IconSource`. */
  icon: IconSource;
  /** Accessible name, in the page language, e.g. "Abrir menu". Required: the button has no visible text. */
  'aria-label': string;
  /**
   * `standard`: no container, `on-surface-variant` icon. `outlined`: 1px
   * `outline` border.
   * @default 'standard'
   */
  variant?: 'standard' | 'outlined';
  /**
   * Makes the button a toggle and sets `aria-pressed`. A selected standard
   * button gets a `primary-container` fill and a 1px `outline` border; a selected outlined button fills
   * with `primary`. The icon stays the same in both states. Leave it out for a plain action button.
   */
  selected?: boolean;
  /** Disables the button. */
  disabled?: boolean;
  /** The `<button>` type. @default 'button' */
  type?: 'button' | 'submit' | 'reset';
  /** Click handler. Not called while disabled. For a toggle, flip your own `selected` here. */
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;

/**
 * Link: an inline text link for use inside running text. Always underlined,
 * in the `link` colour (Deep Blue on light, Growth Green on a Deep Blue
 * section), the same colour once visited. Hover thickens the underline;
 * keyboard focus shows the 2px `focus-ring`. It inherits the surrounding
 * font. Not for actions (use Button) or for navigation menus.
 * Any other prop (onClick, aria-*, download, hrefLang…) is passed to the
 * `<a>`; `ref` reaches it.
 */
export interface LinkProps {
  /** The destination. */
  href: string;
  /**
   * Opens another site: adds the `open_in_new` icon, `target="_blank"`,
   * `rel="noopener noreferrer"` and a screen-reader-only note.
   * @default false
   */
  external?: boolean;
  /** The note read out for an external link. @default ' (abre num novo separador)' */
  externalLabel?: string;
  /** The link text: say where it goes ("política de privacidade"), never "clique aqui". */
  children: React.ReactNode;
  /** Extra class names on the `<a>`. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;

/** One navigation link, used by `MobileMenu` and `Header`. */
export interface NavigationItem {
  /** Link text, sentence case, e.g. "Serviços". */
  label: string;
  /** Link target. */
  href: string;
  /** Marks the page the visitor is on: `aria-current="page"` plus a visible bar. */
  current?: boolean;
  /** Optional click handler, called before the menu closes. */
  onClick?: React.MouseEventHandler<HTMLAnchorElement>;
}

/**
 * MobileMenu: modal navigation drawer for compact and medium windows (under 840px), the
 * mobile menu of `Header`. A full-height panel with 8px corners on its open
 * edge and a `scrim` behind it, holding the close button, the links and one
 * primary button. It is a `role="dialog"`
 * `aria-modal="true"`: focus moves into it when it opens, Tab and Shift+Tab
 * stay inside, Escape and a click on the scrim call `onClose`, the page does
 * not scroll behind it, and focus returns to the opener when it closes.
 * Fixed to the window; render it once, near the end of the page or beside the
 * header. Other props go to the root element; `ref` reaches it.
 */
export interface MobileMenuProps {
  /** Shows the drawer. */
  open: boolean;
  /** Called when the visitor closes it (close button, Escape, scrim, or a link). Set `open` to false in response. */
  onClose: () => void;
  /** The links, in order. */
  items: NavigationItem[];
  /** The primary action: one filled `Button`, usually with `fullWidth`. */
  action?: React.ReactNode;
  /** Which edge the drawer opens from. @default 'end' */
  side?: 'start' | 'end';
  /** Accessible name of the dialog. @default 'Menu' */
  label?: string;
  /** Accessible name of the links' `<nav>`. @default 'Principal' */
  navLabel?: string;
  /** Accessible name of the close button. @default 'Fechar menu' */
  closeLabel?: string;
  /** Id of the dialog panel (for `aria-controls`). Generated when omitted. */
  id?: string;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const MobileMenu: React.ForwardRefExoticComponent<MobileMenuProps & React.RefAttributes<HTMLDivElement>>;

/**
 * Header: the top app bar. 64px high (`top-app-bar-height`), flat, with a 1px
 * `outline-variant` line below. From 840px wide: horizontal logo on the left,
 * navigation links and one filled `Button`. Below 840px it shows only the
 * logo and a menu `IconButton` that opens the `MobileMenu`, which holds the
 * same links and button. The switch
 * point follows the header's own width (a container query), which is the
 * window width when the header spans the page. Other props go to the root
 * `<div>`; `ref` reaches it.
 */
export interface HeaderProps {
  /**
   * The logo. A string is an image URL and is treated as `logoSrc`; any other
   * node is rendered as is (wrap it in your own link). A node takes precedence
   * over `logoSrc`.
   */
  logo?: string | React.ReactNode;
  /** URL of the logo for light grounds (`same-logo-horizontal.svg`, or `same-symbol.svg` with `logoVariant="symbol"`). */
  logoSrc?: string;
  /** URL of the logo for Deep Blue grounds (`same-logo-horizontal-white.svg`, or `same-symbol-white.svg` with `logoVariant="symbol"`). Shown inside `data-theme="dark"`. */
  logoSrcDark?: string;
  /** Alt text of the logo image. @default 'SAME' */
  logoAlt?: string;
  /**
   * `horizontal`: the logo with the SAME word. `symbol`: the image-only mark, for tight
   * spaces or when the SAME name is already prominent on the page. With `symbol`, pass
   * `same-symbol.svg` as `logoSrc` and `same-symbol-white.svg` as `logoSrcDark`; it is
   * drawn 40px high as a square mark, in both layouts, and keeps the alt text 'SAME'.
   * @default 'horizontal'
   */
  logoVariant?: 'horizontal' | 'symbol';
  /** Where the logo image links to. @default '/' */
  logoHref?: string;
  /** Navigation links, in order. Keep it to four or five short ones. */
  items?: NavigationItem[];
  /** The one primary action, drawn as a filled `Button`, e.g. `{ label: 'Pedir orçamento', href: '#contacto' }`. */
  action?: { label: string; href?: string; onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement> };
  /** Keeps the header at the top of the window while the page scrolls. @default false */
  sticky?: boolean;
  /** Accessible name of the links' `<nav>`. @default 'Principal' */
  navLabel?: string;
  /** Accessible name of the menu button. @default 'Abrir menu' */
  menuLabel?: string;
  /** Accessible name of the open menu dialog. @default 'Menu' */
  menuTitle?: string;
  /** Accessible name of the menu's close button. @default 'Fechar menu' */
  closeMenuLabel?: string;
  /** Opens the mobile menu on first render (the menu only exists below 840px). @default false */
  defaultMenuOpen?: boolean;
  /** Id of the mobile menu panel. Generated when omitted. */
  id?: string;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;

/**
 * Section: a full-width page band with one idea. Three tones: `light` (white
 * `surface`), `grey` (Light Grey, `surface-section-alt`) and `dark` (Deep Blue;
 * the section sets `data-theme="dark"` on itself so every role switches, and on a
 * page that is already dark it uses `surface-section-alt` so the band still shows).
 * The inner container is `content-max-width` wide, centred, with the page margin
 * for the window size; vertical padding is 48px / 64px / 80px (mobile / tablet /
 * desktop). Any other prop (aria-*, data-*) is passed to the `<section>`; `ref`
 * reaches it.
 */
export interface SectionProps {
  /**
   * `light`: white. `grey`: Light Grey band (put white Cards on it).
   * `dark`: Deep Blue band, scoped `data-theme="dark"`.
   * @default 'light'
   */
  tone?: 'light' | 'grey' | 'dark';
  /** Small uppercase label above the title (`label-caps`). */
  eyebrow?: React.ReactNode;
  /** The section headline. Names the section for screen readers (`aria-labelledby`). */
  title?: React.ReactNode;
  /** Heading level of the title (1 to 6). @default 2 */
  titleLevel?: 1 | 2 | 3 | 4 | 5 | 6;
  /** `headline`: `headline-large`. `display`: `display-large` when `spacing` is `'hero'`, otherwise `display-small`. All switch to their mobile style under 600px. @default 'headline' */
  titleSize?: 'headline' | 'display';
  /** Intro paragraph under the title (`body-lead`, up to about 70 characters wide). */
  intro?: React.ReactNode;
  /** `hero` pads one step more (80px / 96px on desktop); use for the first section. @default 'default' */
  spacing?: 'default' | 'hero';
  /** Element id, for in-page links. The title id is `<id>-title`. */
  id?: string;
  /** Extra class names on the root element. */
  className?: string;
  /** The section's content, below the header. */
  children?: React.ReactNode;
  [attribute: string]: unknown;
}
export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;

/**
 * Card: a flat white card (`surface-container-lowest`, 8px corners) with optional
 * media, eyebrow, title, body and actions. On a white section it has a 1px
 * `outline-variant` line; on a `grey` Section the line disappears (the white card
 * stands out on Light Grey by itself). Flat: no shadow. With `href`, the whole
 * card is one link with a visible focus ring. Any other prop (aria-*, data-*) is
 * passed to the root `<div>`; `ref` reaches it.
 */
export interface CardProps {
  /**
   * Image on top, with 8px top corners. A string is an image URL (give `mediaAlt`);
   * a React node (for example your own `<picture>`) is rendered in a 16:9 frame.
   */
  media?: string | React.ReactNode;
  /** Alt text for a `media` URL, in the page language. Leave empty only for a purely decorative image. */
  mediaAlt?: string;
  /** Small uppercase label above the title (`label-caps`). */
  eyebrow?: React.ReactNode;
  /** The card headline. With `href` it is the link text, so always give one. */
  title?: React.ReactNode;
  /** Heading level of the title (1 to 6). @default 3 */
  titleLevel?: 1 | 2 | 3 | 4 | 5 | 6;
  /** `large`: `headline-small` (mobile style under 600px). `small`: `title-medium`. @default 'large' */
  titleSize?: 'large' | 'small';
  /** Makes the whole card a link (a stretched link on the title; hover and pressed tones, focus ring on the card). Avoid putting other links in `actions` of a linked card. */
  href?: string;
  /** Draw the 1px `outline-variant` line. It is hidden automatically inside a `grey` Section. @default true */
  outlined?: boolean;
  /** Buttons or links at the bottom of the card (for example one text or outlined Button). */
  actions?: React.ReactNode;
  /** Extra class names on the root element. */
  className?: string;
  /** The body text (`body-large`, `on-surface-variant`). Text or paragraphs. */
  children?: React.ReactNode;
  [attribute: string]: unknown;
}
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;

/**
 * Divider: a 1px `outline-variant` line that separates content. Decoration
 * only: it is invisible on a Light Grey section, where white cards and space do
 * the separating. Renders `<hr>` (horizontal) or `<div role="separator">`
 * (vertical). Any other prop is passed to the element; `ref` reaches it.
 */
export interface DividerProps {
  /** `horizontal` fills the width of its container. `vertical` stretches to the height of its flex row. @default 'horizontal' */
  orientation?: 'horizontal' | 'vertical';
  /** `true`: 16px indent at the start (Material 3 inset). `'middle'`: 16px on both ends. @default false */
  inset?: boolean | 'middle';
  /** Purely visual line: hidden from assistive technology (`role="presentation"`). @default false */
  decorative?: boolean;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLElement>>;

/** A link in a Footer column. */
export interface FooterLink {
  /** Link text, sentence case. */
  label: string;
  /** Destination. */
  href: string;
}

/** A column of links in the Footer. */
export interface FooterColumn {
  /** Column heading (rendered as an `<h2>` in `title-small`). */
  title: string;
  links: FooterLink[];
}

/** A contact line in the Footer: icon, text, optional link. */
export interface FooterContactItem {
  /** Icon: an SVG URL from `assets/Icons` (`mail.svg`, `call.svg`, `location_on.svg`) or a React node. */
  icon?: IconSource;
  /** The visible text: the address, number or place. */
  label: string;
  /** Makes the line a link, for example `mailto:ola@same.pt` or `tel:+351210000000`. */
  href?: string;
}

/**
 * Footer: the page's Deep Blue footer. It sets `data-theme="dark"` on itself (on a
 * page that is already dark it uses `surface-section-alt`). Layout: logo and
 * contact lines on one side, link columns on the other (stacked under 840px),
 * then a thin line with the small print. Any other prop
 * is passed to the `<footer>`; `ref` reaches it.
 */
export interface FooterProps {
  /** The logo: a URL of the white logo (`assets/Logos/same-logo-horizontal-white.svg`) or a React node. Always the `-white` version: the footer is Deep Blue. */
  logo?: string | React.ReactNode;
  /** Alt text for a `logo` URL. @default 'SAME' */
  logoAlt?: string;
  /** Makes the logo a link (usually the home page). */
  logoHref?: string;
  /** Link columns. Two to four read well. */
  columns?: FooterColumn[];
  /** Contact lines under the logo, each with an icon (mail, call, location_on). */
  contact?: FooterContactItem[];
  /** Heading above the contact lines, for example "Contacto". */
  contactTitle?: string;
  /** Accessible name of the link columns' `<nav>`. @default 'Rodapé' */
  navLabel?: string;
  /** Small print (`body-small`): copyright, legal links. */
  legal?: React.ReactNode;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLElement>>;

/** One choice of a Select. */
export interface SelectOption {
  /** The submitted value. */
  value: string;
  /** The visible text. Falls back to `value`. */
  label?: React.ReactNode;
  /** Makes this one option unavailable. */
  disabled?: boolean;
}

/**
 * The event a Select's `onChange` receives: change-like, so `event.target.value`
 * (and `event.target.name`) read as they did with the native select.
 */
export interface SelectChangeEvent {
  type: 'change';
  target: { value: string; name?: string; id: string };
  currentTarget: { value: string; name?: string; id: string };
  /** The key or click event that made the choice. */
  nativeEvent?: Event;
  preventDefault(): void;
  stopPropagation(): void;
  persist(): void;
}

/**
 * Select: the TextField's twin for picking one value from a short, fixed
 * list. The closed field is the same outlined box: label above, 56px high,
 * `body-large` text, 1px `outline` border and 4px corners, 2px `focus-ring`
 * border on focus and while open (plus a 2px `focus-ring` outline around the
 * box on keyboard focus), an `expand_more` chevron at the right that turns
 * to `expand_less` when open. An error shows a 2px border, the error icon and
 * the message, all in `error`.
 * It opens a SAME menu, not the browser's: anchored under the field (above it
 * when there is no room), same width, `surface-container` fill, 1px
 * `outline-variant` line, 4px corners, no shadow; 48px options in
 * `body-large`; the chosen one in `primary-container` with Medium weight and
 * a check. Built on the WAI-ARIA APG select-only combobox: a `<button
 * role="combobox">` labelled by the label, a `role="listbox"` of
 * `role="option"`s, `aria-activedescendant`; Enter, Space, Alt+Down and the
 * arrows open it, the arrows, Home, End and letters move, Enter or Space
 * choose, Escape closes, Tab chooses and moves on, a press outside closes.
 * With `name`, an `<input type="hidden">` carries the value in forms.
 * Any other prop (onFocus, aria-*, data-*…) is passed to the combobox
 * button; `ref` reaches that button, whose `value` is the current value.
 */
export interface SelectProps {
  /** Visible label above the field; the combobox and the menu are labelled by it. Always give one. */
  label: React.ReactNode;
  /** The choices, in order. Alternatively pass `<option>` / `<optgroup>` children (read, not rendered). */
  options?: SelectOption[];
  /** Controlled value (pair with `onChange`). */
  value?: string;
  /** Uncontrolled initial value. */
  defaultValue?: string;
  /** Called when a different option is chosen; `event.target.value` is the new value. */
  onChange?: (event: SelectChangeEvent) => void;
  /**
   * Text shown in the field, as a hint, while nothing is chosen ("Escolha
   * uma opção"). It is not an option in the menu. Never a replacement for the label.
   */
  placeholder?: string;
  /** Supporting text under the field, linked with `aria-describedby`. */
  helperText?: React.ReactNode;
  /**
   * Error state. A string is the error message and replaces `helperText`;
   * `true` marks the field invalid and keeps `helperText` as the message.
   * Sets `aria-invalid="true"`.
   */
  error?: string | boolean;
  /**
   * Adds " *" to the label and `aria-required`. The browser does not block
   * submitting an empty select: check it on submit and show an error.
   */
  required?: boolean;
  /** Disables the field. */
  disabled?: boolean;
  /** Form field name: renders an `<input type="hidden">` with the value. */
  name?: string;
  /** `form` attribute of the hidden input, for a field outside its form. */
  form?: string;
  /** Renders with the menu open (previews and documentation). */
  defaultOpen?: boolean;
  /** Element id of the combobox. Generated when omitted; the helper text id is `<id>-support`. */
  id?: string;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;

/**
 * Checkbox: Material 3 checkbox with SAME's shape. An 18px box with 4px
 * corners and a 2px `outline` border; checked and indeterminate fill with
 * `primary` and draw the mark in `on-primary`. The box sits inside a 48px
 * touch target around a real `<input type="checkbox">`, and the label
 * (`body-large`) is part of the click target. An error draws the box, the
 * error icon and the message in `error`; icon and words carry the meaning,
 * never the colour alone.
 * Any other prop (value, form, aria-*, onBlur…) is passed to the `<input>`;
 * `ref` reaches that element.
 */
export interface CheckboxProps {
  /** Text beside the box, clickable. Always give one (or an `aria-label`). */
  label?: React.ReactNode;
  /** Controlled state (pair with `onChange`). */
  checked?: boolean;
  /** Uncontrolled initial state. */
  defaultChecked?: boolean;
  /** Change handler; receives the native change event. */
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
  /**
   * Shows the "some selected" dash (the native `indeterminate` state) for a parent
   * box over a partly selected group. Set it from your state; a click still
   * toggles `checked`.
   */
  indeterminate?: boolean;
  /** Disables the checkbox. */
  disabled?: boolean;
  /**
   * Error state. A string is the error message and replaces `helperText`;
   * `true` marks the box invalid and keeps `helperText` as the message.
   * Sets `aria-invalid="true"`.
   */
  error?: string | boolean;
  /** Marks the box required (`required` attribute) and adds " *" to the label. */
  required?: boolean;
  /** Form field name. */
  name?: string;
  /** Element id. Generated when omitted; the helper text id is `<id>-support`. */
  id?: string;
  /** Supporting text under the label, linked with `aria-describedby`. */
  helperText?: React.ReactNode;
  /** Extra class names on the root element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;

/** The action of a Snackbar: one text button, in `inverse-primary`. */
export interface SnackbarAction {
  /** A short verb ("Desfazer"). */
  label: string;
  /** Called on click. The snackbar then calls `onClose('action')`. */
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
}

/**
 * Snackbar: Material 3 snackbar. A short, temporary message about something
 * that just happened ("Mensagem enviada"), in `inverse-surface` with
 * `inverse-on-surface` text, 4px corners, flat, `body-medium` type. It has
 * at most one text action and an optional close button, and is announced
 * politely (`role="status"`, `aria-live="polite"`): the live region stays in
 * the page while `open` is false. Fixed at the bottom of the window unless
 * `inline`. Under 600px the action wraps under the message only when needed. The auto-hide timer pauses while the pointer is over the
 * snackbar or focus is inside it; Escape dismisses it.
 * Any other prop (id, data-*…) is passed to the live-region element; `ref`
 * reaches it.
 */
export interface SnackbarProps {
  /** Whether the snackbar is shown. You own this state. */
  open: boolean;
  /** The message: one short sentence, up to two lines. */
  message: React.ReactNode;
  /** Optional single action. */
  action?: SnackbarAction;
  /**
   * Asked to close. Called with the reason: `'timeout'` (auto-hide),
   * `'close'` (close button), `'action'` (after the action) or `'escape'`.
   * Set `open` to false in response. When given, a close button is shown.
   */
  onClose?: (reason: 'timeout' | 'close' | 'action' | 'escape') => void;
  /**
   * Closes the snackbar after this many milliseconds (calls `onClose('timeout')`).
   * 4000 to 10000 is typical for a message without an action. With an action,
   * leave it out so the snackbar stays until the person acts or closes it.
   */
  autoHideMs?: number;
  /** Shows the close icon button. Only with `onClose`. @default true */
  closeButton?: boolean;
  /** Accessible name of the close button. @default 'Fechar' */
  closeLabel?: string;
  /** Lays the snackbar out in the page flow instead of fixing it to the window. Use for previews and containers. @default false */
  inline?: boolean;
  /** Extra class names on the live-region element. */
  className?: string;
  [attribute: string]: unknown;
}
export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;

declare global {
  interface Window {
    SAME: {
      Button: typeof Button;
      TextField: typeof TextField;
      IconButton: typeof IconButton;
      Link: typeof Link;
      MobileMenu: typeof MobileMenu;
      Header: typeof Header;
      Section: typeof Section;
      Card: typeof Card;
      Divider: typeof Divider;
      Footer: typeof Footer;
      Select: typeof Select;
      Checkbox: typeof Checkbox;
      Snackbar: typeof Snackbar;
    };
  }
}
