import { ReactNode } from 'react'; import { DialogCloseReason } from '../../feedback/dialog/StyledDialog'; import { PickerAnnouncement } from './PickerLiveRegion'; export type FullScreenPickerCloseReason = DialogCloseReason | 'closeButton'; export interface FullScreenPickerProps { open: boolean; /** Close button, Escape and native Back. Always a cancel: the caller discards anything not applied. */ onClose: (reason: FullScreenPickerCloseReason) => void; dataTest: string; /** The field label. Wraps onto as many lines as it needs; it is never truncated. */ title?: ReactNode; /** Accessible name of the dialog when there is no `title`. */ fallbackName?: string; /** Accessible name of the close button. */ closeLabel: string; /** The search field — rendered full width under the title, or beside it on a short viewport. */ search: ReactNode; /** The selection row (several choices) or the clear row (one choice). Part of the fixed header. */ headerRow?: ReactNode; /** The list. It is the only part that scrolls. */ children: ReactNode; /** Polite announcement rendered inside the dialog (counts, matches, clears). */ announcement?: PickerAnnouncement; } /** * @figmaNode wXrXt5uKNNzV2DnQCgyYZH#45614-217265 * Figma "Select mobile full-screen picker": a full-screen sheet with a fixed **Header** (title, close, * search, optional selection/clear row; 1 px `border/separator` delta-200 under it) and one scrolling * **List**. Title = Mobile/Page title, SemiBold 20/28, `text-icon/title-label` delta-800, wraps. * Close = 40 × 40 Quaternary button with a 24 px ×. Search row = `pt-8 px-16`. On a short viewport * (`Variant2`, ≤ 480 px high and ≥ 480 px wide — a phone in landscape, not an upright phone whose * keyboard is up) title, search (max 240 px) and close share the first row. * * The shared shell for every full-screen picker in ui-core: `StyledSelectAutocomplete` and * `CountryCodeSelect` both render through it (ASMA-8468). Presentation only — the caller owns the * query, the list, the keyboard and what closing means. Nothing is focused for typing on open, so * the on-screen keyboard appears only when the user taps the search field (REQ-006). Opened from * the keyboard, focus goes to the `listbox` in `children` when it is a Tab stop (else to the close * button), where the arrows work at once. Native Back comes from `StyledDialog` (D-004). * * For a project's own picker (exported from `asma-ui-core`): render it below the same breakpoint * as the selects (`max-width: 743px` or `max-height: 480px`); pass the search field and the list; * make the list a `role="listbox"` with `tabIndex={0}` and `aria-activedescendant` if it should * take keyboard focus on open; announce counts with `useAnnouncer`. * * @example * const [announcement, announce] = useAnnouncer() * setOpen(false)} // ×, Escape and Back: a cancel * dataTest='templates-picker' * title='Add questionnaires' * closeLabel='Close' * search={} * headerRow={} // optional: count, clear, Done * announcement={announcement} * > *
    …
*
* * @see asma-modules/_docs/frontend/plans/2026-10-19-11-04-plan-full-screen-select-picker-phones.md:203 — TASK-004 */ export declare const FullScreenPicker: ({ open, onClose, dataTest, title, fallbackName, ...sheet }: FullScreenPickerProps) => JSX.Element;