@nicertravel/ui 0.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1019 @@
1
+ import { ButtonHTMLAttributes, ComponentType, Dispatch, HTMLAttributes, InputHTMLAttributes, MouseEvent, PointerEvent, ReactNode, RefObject, SelectHTMLAttributes, SetStateAction, TextareaHTMLAttributes } from "react";
2
+ import { Step } from "react-joyride";
3
+ interface OptionsProps$1 {
4
+ action: () => void;
5
+ destructive?: boolean;
6
+ disabled?: boolean;
7
+ hidden?: boolean;
8
+ icon?: string;
9
+ label: string;
10
+ }
11
+ interface ActionsProps {
12
+ options: OptionsProps$1[];
13
+ setVisible: (state: boolean) => void;
14
+ triggerRef: RefObject<HTMLElement | null>;
15
+ visible: boolean;
16
+ }
17
+ declare function Actions({ options, visible, setVisible, triggerRef }: ActionsProps): import("react").ReactPortal | null;
18
+ export interface DropdownOption<T> {
19
+ /** A second, softer line under the label: what tells two alike apart. */
20
+ description?: string;
21
+ endDecorator?: React.ReactNode;
22
+ label: string;
23
+ /**
24
+ * The heading this option sits under. A heading prints wherever the
25
+ * section changes, so options arrive already grouped.
26
+ */
27
+ section?: string;
28
+ startDecorator?: React.ReactNode;
29
+ value?: T;
30
+ }
31
+ export interface DropdownProps<T> {
32
+ /**
33
+ * An anchor narrower than its list, on the right half of the screen, gets
34
+ * the list under it ending where it ends instead of starting where it
35
+ * starts: a toolbar's select at the content's right edge keeps its list
36
+ * inside the content.
37
+ */
38
+ alignEnd?: boolean;
39
+ anchorEl?: React.RefObject<HTMLElement | null>;
40
+ onSelect?: (value?: T) => void;
41
+ options: DropdownOption<T>[];
42
+ /**
43
+ * A field over the options, this its placeholder, that narrows them as
44
+ * you type, by the label or the line under it; the arrows move and Enter
45
+ * picks the first match. For a long list opened from a button.
46
+ */
47
+ search?: string;
48
+ selectedOptions?: T[];
49
+ setVisible: (state: boolean) => void;
50
+ /**
51
+ * Every option shows its box, empty until it is the chosen one, so the
52
+ * rows line up and the choice reads as one of them. For a list of
53
+ * choices opened from a button.
54
+ */
55
+ showChecks?: boolean;
56
+ /**
57
+ * The keyboard picks, as in a native select: typing jumps to the first
58
+ * option that starts with it, the arrows move, Enter picks and Escape
59
+ * closes. For a list opened from a button — under a text input the typing
60
+ * belongs to the input.
61
+ */
62
+ typeAhead?: boolean;
63
+ visible: boolean;
64
+ }
65
+ declare function Dropdown<T>({ alignEnd, options, visible, setVisible, onSelect, search, selectedOptions, anchorEl, showChecks, typeAhead }: DropdownProps<T>): import("react").JSX.Element | null;
66
+ interface OptionsProps<T> {
67
+ /** The keyboard is on it (`typeAhead`). */
68
+ active?: boolean;
69
+ checked?: boolean;
70
+ /** Its place in the list, for the keyboard to scroll to. */
71
+ index?: number;
72
+ onClick?: () => void;
73
+ option: DropdownOption<T>;
74
+ /** Its box shows unchecked too (`showChecks`). */
75
+ showCheck?: boolean;
76
+ }
77
+ export declare function Option<T>({ active, checked, index, option, onClick, showCheck }: OptionsProps<T>): import("react").JSX.Element;
78
+ interface AutocompleteProps<T> extends InputHTMLAttributes<HTMLInputElement> {
79
+ defaultOptions?: DropdownOption<T>[];
80
+ icon?: string;
81
+ inputValue?: string;
82
+ isLoading?: boolean;
83
+ label?: string;
84
+ onInputChange?: (value: string) => void;
85
+ onSelectOption?: (value?: T) => void;
86
+ options: DropdownOption<T>[];
87
+ required?: boolean;
88
+ selectedOptions?: T[];
89
+ }
90
+ declare function Autocomplete<T>({ label, options, onInputChange, onSelectOption, selectedOptions, inputValue, required, isLoading, onBlur, onFocus, defaultOptions, icon, ...rest }: AutocompleteProps<T>): import("react").JSX.Element;
91
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
92
+ buttonType: "primary" | "secondary" | "tertiary" | "destructive";
93
+ dropdown?: boolean;
94
+ iconLeft?: string;
95
+ /** Defaults to the kit's 10px, small for a plain glyph like `plus`. */
96
+ iconSize?: number;
97
+ label: string;
98
+ size: "l" | "m" | "s";
99
+ state?: "loading" | "success" | "error" | "disabled";
100
+ }
101
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
102
+ interface CalendarProps {
103
+ defaultFrom?: string;
104
+ defaultTo?: string;
105
+ double?: boolean;
106
+ maxDate?: string;
107
+ minDate?: string;
108
+ onChange: (from: string | null, to: string | null) => void;
109
+ setVisible: (state: boolean) => void;
110
+ visible: boolean;
111
+ }
112
+ declare function Calendar({ defaultFrom, defaultTo, double, onChange, visible, setVisible, minDate, maxDate }: CalendarProps): false | import("react").JSX.Element;
113
+ export interface CalendarPropsV2 {
114
+ /**
115
+ * A click on the picked day unpicks it (one day only, not a range): Done
116
+ * then reads as no date.
117
+ */
118
+ clearable?: boolean;
119
+ defaultFrom?: string;
120
+ defaultTo?: string;
121
+ double?: boolean;
122
+ initialViewDate?: string;
123
+ maxDate?: string;
124
+ minDate?: string;
125
+ onChange: (from: string | null, to: string | null) => void;
126
+ /**
127
+ * Done, and only Done: a click outside closes the calendar too, which a
128
+ * host that applies the picked range on Done reads as leaving it be.
129
+ */
130
+ onDone?: () => void;
131
+ setVisible: (state: boolean) => void;
132
+ visible: boolean;
133
+ }
134
+ export declare const CalendarV2: ({ clearable, defaultFrom, defaultTo, double, initialViewDate, onChange, onDone, visible, setVisible, minDate, maxDate }: CalendarPropsV2) => import("react").JSX.Element | null;
135
+ type CardBrand = "amex" | "applePay" | "cartes_bancaires" | "diners" | "discover" | "eftpos_au" | "googlePay" | "hiper" | "hipercard" | "interac" | "jcb" | "maestro" | "mastercard" | "unionpay" | "unknown" | "visa";
136
+ declare const cards: Record<CardBrand, string>;
137
+ interface CardInputValues {
138
+ brand?: CardBrand;
139
+ cvv?: string | null;
140
+ date?: string | null;
141
+ number?: string | null;
142
+ }
143
+ export interface CardInputProps {
144
+ data?: CardInputValues;
145
+ disabled?: boolean;
146
+ includeCvv?: boolean;
147
+ setData?: (data: CardInputValues) => void;
148
+ }
149
+ declare const CardInput: ({ data, setData, disabled, includeCvv }: CardInputProps) => import("react").JSX.Element;
150
+ interface CheckProps extends InputHTMLAttributes<HTMLInputElement> {
151
+ circle?: boolean;
152
+ /**
153
+ * Some of what it stands for is chosen, not all: drawn checked with a
154
+ * dash instead of a tick (a group whose items are partly selected).
155
+ */
156
+ partial?: boolean;
157
+ }
158
+ declare function Check({ circle, partial, ...rest }: CheckProps): import("react").JSX.Element;
159
+ interface DateInputProps {
160
+ defaultDate?: string;
161
+ disabled?: boolean;
162
+ id?: string;
163
+ key?: string;
164
+ label?: string;
165
+ maxDate?: string;
166
+ minDate?: string;
167
+ name?: string;
168
+ onChange?: (value: string) => void;
169
+ required?: boolean;
170
+ }
171
+ declare function DateInput({ id, defaultDate, disabled, label, name, onChange, required, key, minDate, maxDate }: DateInputProps): import("react").JSX.Element;
172
+ export interface DateInputV2Props extends InputHTMLAttributes<HTMLInputElement> {
173
+ label?: string;
174
+ /**
175
+ * The latest and earliest days a typed date may be (YYYY-MM-DD), as the
176
+ * calendar's own bounds: a whole day outside them isn't handed on, and
177
+ * the field says which days are. A host that words its own range error
178
+ * leaves them out.
179
+ */
180
+ maxDate?: string;
181
+ minDate?: string;
182
+ /**
183
+ * Typed as well as picked: the field takes MM-DD-YYYY from the keyboard,
184
+ * its dashes added as the digits come, and hands each whole, real day on
185
+ * as YYYY-MM-DD (null once emptied). A click puts the cursor in it; the
186
+ * calendar opens from its button. Without it the field is the
187
+ * calendar's alone, and a click opens it.
188
+ */
189
+ onType?: (value: string | null) => void;
190
+ setCalendarVisible: Dispatch<SetStateAction<boolean>>;
191
+ }
192
+ /** "12-24-2026" → "2026-12-24", or null while it isn't a whole, real day. */
193
+ export declare const typedDate: (text: string) => string | null;
194
+ export declare const DateInputV2: ({ label, maxDate, minDate, onType, setCalendarVisible, ...rest }: DateInputV2Props) => import("react").JSX.Element;
195
+ interface DialogProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
196
+ actions: DialogAction[];
197
+ children?: React.ReactNode;
198
+ description?: string;
199
+ setVisible: (state: boolean) => void;
200
+ /**
201
+ * The heading, in the header beside the close button as the Modal sets
202
+ * it; the content scrolls under it. It used to fall through to the box as
203
+ * a tooltip, so every titled dialog opened without one.
204
+ */
205
+ title?: string;
206
+ }
207
+ interface DialogAction {
208
+ disabled?: boolean;
209
+ hierarchy: ButtonProps["buttonType"];
210
+ label: string;
211
+ onClick: () => void;
212
+ }
213
+ declare const Dialog: ({ actions, description, setVisible, children, title, ...rest }: DialogProps) => import("react").JSX.Element;
214
+ export interface DetailDrawerProps {
215
+ buttons: ButtonProps[];
216
+ children: ReactNode;
217
+ /**
218
+ * Adds a share button beside the close X. The drawer only reports the tap —
219
+ * what gets shared (and how: native sheet vs clipboard) is the caller's.
220
+ */
221
+ onShare?: () => void;
222
+ setVisible: Dispatch<SetStateAction<boolean>>;
223
+ }
224
+ /**
225
+ * THE detail side panel — every search result, itinerary segment, order and
226
+ * form drawer in the apps opens in this: a 640px panel sliding in from the
227
+ * right over a dimmed page, scrolling content, and its actions pinned in the
228
+ * footer. On a phone it takes the whole screen and rises from below.
229
+ */
230
+ declare function DetailDrawer({ buttons, children, onShare, setVisible }: DetailDrawerProps): import("react").JSX.Element;
231
+ export interface EmptyStateProps {
232
+ /** What to do about it, under the text. */
233
+ button?: ButtonProps;
234
+ description: string;
235
+ icon: string;
236
+ title?: string;
237
+ }
238
+ /**
239
+ * "Nothing here yet": a muted round icon, an optional bold title and a short
240
+ * description, centred in whatever hosts it.
241
+ */
242
+ declare function EmptyState({ button, description, icon, title }: EmptyStateProps): import("react").JSX.Element;
243
+ interface Props$2 {
244
+ children: ReactNode;
245
+ /** Headline shown in place of the app. */
246
+ message?: string;
247
+ }
248
+ /**
249
+ * Root boundary for the SPAs. Catches render errors, takes over the screen
250
+ * with the fallback and reports the error to CloudWatch RUM.
251
+ *
252
+ * Event-handler and async errors are not caught here — RUM's `errors`
253
+ * telemetry picks those up from `onerror` / `unhandledrejection`.
254
+ */
255
+ declare function ErrorBoundary({ children, message }: Props$2): import("react").JSX.Element;
256
+ interface FileInputProps extends InputHTMLAttributes<HTMLInputElement> {
257
+ /** The picker button's words. */
258
+ browseLabel?: string;
259
+ /**
260
+ * Something held over the host's module rather than the box: the host
261
+ * takes the drop, the box only answers. Leave it out and the box takes
262
+ * its own drops.
263
+ */
264
+ dragging?: {
265
+ files: number;
266
+ } | null;
267
+ icon?: string;
268
+ inputValue?: File | File[];
269
+ /** What it takes and how big, under the prompt. */
270
+ label?: string;
271
+ linkLabel?: string;
272
+ /** Words for one and for several, as in "Drop to upload 2 files". */
273
+ noun?: readonly [string, string];
274
+ /** The files picked or dropped, besides `onChange`. */
275
+ onFiles?: (files: File[]) => void;
276
+ /** Offers Add a link, which turns the box into the field. */
277
+ onLink?: (url: string) => void;
278
+ /** The words over the hint; by default it asks for the file. */
279
+ prompt?: string;
280
+ }
281
+ /**
282
+ * THE way to hand files over, in every app: one dashed box that takes a
283
+ * drop, the picker and, when the host offers it, a link. It keeps one height
284
+ * in every state, so nothing under it moves: dragging lifts the arrow, and
285
+ * Add a link turns the box itself into the field.
286
+ */
287
+ declare function FileInput({ browseLabel, dragging, icon, inputValue, label, linkLabel, noun, onFiles, onLink, prompt, ...rest }: FileInputProps): import("react").JSX.Element;
288
+ interface IconProps extends HTMLAttributes<HTMLElement> {
289
+ misc?: boolean;
290
+ name: string;
291
+ size?: number;
292
+ }
293
+ declare function Icon({ misc, name, size, className, ...rest }: IconProps): import("react").JSX.Element;
294
+ export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
295
+ buttonType: "primary" | "secondary" | "tertiary" | "destructive";
296
+ circle?: boolean;
297
+ icon: string;
298
+ size: "l" | "m" | "s";
299
+ }
300
+ declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
301
+ interface Props$1 {
302
+ /** The app's API origin (VITE_APP_API_URL). Empty disables the gate. */
303
+ apiUrl: string;
304
+ /** This deployment protects config reads with Cognito. Guests skip the gate. */
305
+ getToken?: () => Promise<string | null | void>;
306
+ children: ReactNode;
307
+ }
308
+ /**
309
+ * The web twin of the native app's version gate: a kill switch for deploys.
310
+ *
311
+ * Reads authenticated `GET /config/AppVersion/web` — the same config resource
312
+ * the native app checks at cold start — and takes over the screen while its
313
+ * `isUnderMaintenance` flag is on. Ops flips the flag with the admin
314
+ * `POST /config/AppVersion` (versionCode "web"); no frontend deploy involved.
315
+ *
316
+ * Fails OPEN, like the native gate: a network error, a missing row or an
317
+ * unexpected payload renders the app normally. Being unable to read the flag
318
+ * must never take the product down. While mounted it keeps polling, so
319
+ * browsers left open drop into (and come back out of) maintenance on their
320
+ * own.
321
+ */
322
+ declare function MaintenanceGate({ apiUrl, children, getToken }: Props$1): import("react").JSX.Element;
323
+ interface ModalProps extends HTMLAttributes<HTMLDivElement> {
324
+ button?: ButtonProps;
325
+ children: ReactNode;
326
+ hideCloseButton?: boolean;
327
+ setVisible: (state: boolean) => void;
328
+ title?: string;
329
+ visible: boolean;
330
+ }
331
+ declare function Modal({ button, children, title, visible, hideCloseButton, setVisible, className, ...rest }: ModalProps): false | import("react").JSX.Element;
332
+ interface NavButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
333
+ buttonType: "back" | "forward" | "cancel" | "more" | "less";
334
+ size: "l" | "s";
335
+ }
336
+ declare function NavButton({ size, buttonType, ...rest }: NavButtonProps): import("react").JSX.Element;
337
+ interface NumberInputProps {
338
+ defaultValue?: number | string;
339
+ disabled?: boolean;
340
+ /** What is wrong with the number, under the field as a text input's. */
341
+ error?: string;
342
+ id?: string;
343
+ /**
344
+ * Its name, read inside the empty field past the minus button and on its
345
+ * border once it holds a number, as a text input's label.
346
+ */
347
+ label?: string;
348
+ maxValue?: number;
349
+ minValue?: number;
350
+ name?: string;
351
+ onChange?: (value: number | string) => void;
352
+ /**
353
+ * It may hold no number: it starts empty without a default, minus from
354
+ * the least empties it, and leaving it empty keeps it so.
355
+ */
356
+ optional?: boolean;
357
+ required?: boolean;
358
+ /** What each button adds or takes away; a fraction lets decimals in. */
359
+ step?: number;
360
+ unit?: {
361
+ singular: string;
362
+ plural: string;
363
+ };
364
+ /** Given, the host holds the number: a reset from outside shows. */
365
+ value?: number;
366
+ }
367
+ declare function NumberInput({ id, defaultValue, disabled, error, label, minValue, maxValue, name, onChange, optional, required, step, unit, value: held }: NumberInputProps): import("react").JSX.Element;
368
+ interface OverlayProps extends HTMLAttributes<HTMLDivElement> {
369
+ children: ReactNode;
370
+ onClose?: (state: boolean) => void;
371
+ }
372
+ declare function Overlay({ children, onClose, ...rest }: OverlayProps): import("react").JSX.Element;
373
+ interface PaginatorProps extends HTMLAttributes<HTMLDivElement> {
374
+ currentPage: number;
375
+ onNextPage: () => void;
376
+ onPageChange: (page: number) => void;
377
+ onPrevPage: () => void;
378
+ resultsPerPage: number;
379
+ totalPages: number;
380
+ totalResults: number;
381
+ }
382
+ declare function Paginator({ totalPages, currentPage, onPageChange, totalResults, resultsPerPage, onPrevPage, onNextPage, ...rest }: PaginatorProps): import("react").JSX.Element;
383
+ export interface Phone {
384
+ completeNumber: string;
385
+ dialCode: string;
386
+ number: string;
387
+ }
388
+ interface PhoneInputProps {
389
+ /** The dial code a known number starts with, e.g. "+51"; else the visitor's. */
390
+ defaultDialCode?: string;
391
+ /** The national number, without its dial code. */
392
+ defaultValue?: string;
393
+ disabled?: boolean;
394
+ /** Under the field, as TextInput shows one. */
395
+ error?: string;
396
+ id?: string;
397
+ /**
398
+ * Names the field on its top border, from the start: the dial code holds
399
+ * the spot a TextInput's resting label would take. For two phone fields
400
+ * side by side (a phone and a WhatsApp).
401
+ */
402
+ label?: string;
403
+ name?: string;
404
+ /** Focus left the field: the number and its dial code alike. */
405
+ onBlur?: () => void;
406
+ onChange?: (phone?: Phone) => void;
407
+ /** What the empty number field shows; "Phone" by default. */
408
+ placeholder?: string;
409
+ readOnly?: boolean;
410
+ required?: boolean;
411
+ }
412
+ declare function PhoneInput({ id, defaultDialCode, defaultValue, disabled, error, label, name, onBlur, onChange, placeholder, required, readOnly }: PhoneInputProps): import("react").JSX.Element;
413
+ export type SignInMethod = "email" | "phone";
414
+ export type SignInStep = "code" | "contact";
415
+ export interface SignInCardProps {
416
+ /**
417
+ * The agency whose own host this is (`portal.agency.com`): the screen
418
+ * welcomes to it and wears its mark and sign-in photo in place of Nicer's.
419
+ * Nicer's terms still govern, so the terms line names Nicer.
420
+ */
421
+ agency?: {
422
+ logoUrl?: string;
423
+ name: string;
424
+ photoUrl?: string;
425
+ };
426
+ /** A code is being asked for or checked: the button waits. */
427
+ busy?: boolean;
428
+ /** The CAPTCHA widget the host's sign-in renders under the fields. */
429
+ captcha?: ReactNode;
430
+ /** More links of the code step, after Resend code: another channel. */
431
+ codeLinks?: ReactNode;
432
+ /** The card's top right corner: the portal's Register link. */
433
+ corner?: ReactNode;
434
+ email: string;
435
+ /** The square Nicer mark for the app's theme. */
436
+ logoSrc: string;
437
+ method: SignInMethod;
438
+ /** Back to the contact step, to type another phone or email. */
439
+ onChangeContact: () => void;
440
+ /** The digits typed so far; anything else is dropped as it is typed. */
441
+ onCode: (code: string) => void;
442
+ onEmail: (email: string) => void;
443
+ onMethod: (method: SignInMethod) => void;
444
+ onPhone: (phone?: Phone) => void;
445
+ onResend: () => void;
446
+ /** Continue on the contact step, Sign in on the code step. */
447
+ onSubmit: () => void;
448
+ step: SignInStep;
449
+ /** The drawn wordmark a phone shows in the upper half of the screen. */
450
+ wordmarkSrc: string;
451
+ }
452
+ /** The length of the code the sign-in sends. */
453
+ export declare const SIGN_IN_CODE_LENGTH = 6;
454
+ /**
455
+ * Sign-in for the apps Nicer's own people use (portal and Octopus): the card
456
+ * inside the brand photo on a desktop, the native app's plain screen on a
457
+ * phone. The host owns the challenge and what follows it; this owns the
458
+ * screen, so every app signs in on the same one.
459
+ */
460
+ declare function SignInCard({ agency, busy, captcha, codeLinks, corner, email, logoSrc, method, onChangeContact, onCode, onEmail, onMethod, onPhone, onResend, onSubmit, step, wordmarkSrc }: SignInCardProps): import("react").JSX.Element;
461
+ export interface AgencyMarkProps {
462
+ /** The agency's logo; without one, or when it fails to load, its initial. */
463
+ logoUrl?: string;
464
+ /** The agency's name, whose first letter stands in for the logo. */
465
+ name: string;
466
+ /**
467
+ * 24px (`s`), 32px (`m`, the default), or the whole of a tile the host
468
+ * frames (`fill`), as a detail page's 64px one.
469
+ */
470
+ size?: "fill" | "m" | "s";
471
+ }
472
+ /**
473
+ * An agency's mark: its logo over a neutral tile holding its initial. The
474
+ * logo shows once it has loaded, so a broken or missing one leaves the
475
+ * initial instead of the browser's broken image; never Nicer's own mark.
476
+ */
477
+ declare function AgencyMark({ logoUrl, name, size }: AgencyMarkProps): import("react").JSX.Element;
478
+ export interface SideNavItem {
479
+ /** A count on the page's mark, as Community's unread messages. */
480
+ badge?: number;
481
+ icon: string;
482
+ /**
483
+ * Names the page from one render to the next: its place in what the
484
+ * person arranged, its slide, and its tour step (`nav-<key>`).
485
+ */
486
+ key: string;
487
+ label: string;
488
+ route: string;
489
+ }
490
+ /** What the rail asks of the host's router link. */
491
+ export interface SideNavLinkProps {
492
+ children: ReactNode;
493
+ className?: string;
494
+ "data-flip"?: string;
495
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
496
+ to: string;
497
+ }
498
+ export interface SideNavProps {
499
+ /**
500
+ * Every page the rail can hold, in their default order, so a page this
501
+ * person can't see now (another role's, a feature off) keeps its place in
502
+ * what they arranged. The pages' own keys by default.
503
+ */
504
+ allKeys?: readonly string[];
505
+ /**
506
+ * Where this person's arrangement is kept on this device, one per person.
507
+ * Without it there is no Edit menu.
508
+ */
509
+ arrangementKey?: string;
510
+ /** Keeps the rail open, as while a menu in its header is. */
511
+ expanded?: boolean;
512
+ /** After the pages, sliding with them: a divider, links out. */
513
+ footer?: ReactNode;
514
+ /** The pages this person may see, in their default order; none until known. */
515
+ items: SideNavItem[];
516
+ /** The host router's link. */
517
+ Link: ComponentType<SideNavLinkProps>;
518
+ /**
519
+ * The rail's top: the agency switcher, or a link holding the mark and,
520
+ * shown as the rail opens, a `.label`.
521
+ */
522
+ logo: ReactNode;
523
+ /** A page's link clicked: the host may keep it from navigating. */
524
+ onNavigate?: (item: SideNavItem, event: MouseEvent<HTMLAnchorElement>) => void;
525
+ pathname: string;
526
+ }
527
+ /**
528
+ * The apps' left rail: the pages, open over the page on hover, and Edit menu,
529
+ * where a person hides pages and drags the rest into their order, kept per
530
+ * person on this device.
531
+ */
532
+ declare function SideNav({ allKeys, arrangementKey, expanded, footer, items, Link, logo, onNavigate, pathname }: SideNavProps): import("react").JSX.Element;
533
+ /** Six dots, the grip a row or a card is dragged by: the kit has no such icon. */
534
+ declare function Grip(): import("react").JSX.Element;
535
+ /**
536
+ * How a person arranged a board's columns (their order, and which are off
537
+ * it), kept per person on this device. The pipeline's stages, My tasks' due
538
+ * dates and the sidebar's pages keep theirs this way, each under its own key.
539
+ */
540
+ export interface Arrangement<Id extends string> {
541
+ /** Every column, in the board's order. */
542
+ columns: Id[];
543
+ /** The columns off the board. */
544
+ hidden: Id[];
545
+ }
546
+ /** The board as it comes: every column, in its own order. */
547
+ export declare const defaultArrangement: <Id extends string>(all: readonly Id[]) => Arrangement<Id>;
548
+ export declare const isDefaultArrangement: <Id extends string>(arrangement: Arrangement<Id>, all: readonly Id[]) => boolean;
549
+ /**
550
+ * A saved arrangement as the board reads it now: columns it no longer has
551
+ * are dropped, and one it has that the saved order lacks goes after the
552
+ * one it follows in the board's own order. Anything else reads as nothing
553
+ * arranged.
554
+ */
555
+ export declare const arrangementFrom: <Id extends string>(saved: unknown, all: readonly Id[]) => Arrangement<Id>;
556
+ /** No storage at all (a private window) reads as nothing arranged. */
557
+ export declare const loadArrangement: <Id extends string>(key: string, all: readonly Id[]) => Arrangement<Id>;
558
+ export declare const saveArrangement: <Id extends string>(key: string, arrangement: Arrangement<Id>) => void;
559
+ /**
560
+ * The whole order with the ones this person sees put in their new order,
561
+ * the ones they can't see (another role's, a feature off) where they were.
562
+ */
563
+ export declare const withShownOrder: <Id extends string>(order: readonly Id[], shown: readonly Id[], next: readonly Id[]) => Id[];
564
+ /**
565
+ * When the container's items change (`keys`: one taken out, put in, or
566
+ * reordered), slides each that stayed from where it showed to where it
567
+ * is: down a column (`y`) or across a board (`x`). Where they showed is
568
+ * read as the render starts, while the page still shows them: an item
569
+ * that left by its own motion, or a scroll the browser kept in place,
570
+ * moves nothing. The items are the container's children with `data-flip`,
571
+ * the key that names the same item from one render to the next. One moved
572
+ * further than half again its size fades in where it lands instead. With
573
+ * `enter`, an item put in fades in where it lands (not the first ones the
574
+ * container shows).
575
+ */
576
+ export declare function useFlip(ref: RefObject<HTMLElement | null>, keys: string[], axis?: "x" | "y", { enter }?: {
577
+ enter?: boolean;
578
+ }): void;
579
+ interface LiftedRow {
580
+ /** Draws the copy with its top at `top`, kept within the list. */
581
+ follow: (top: number) => void;
582
+ /** Let go: the copy settles onto the row's place, then goes. */
583
+ land: (row: HTMLElement | null) => void;
584
+ }
585
+ /**
586
+ * A row picked up to be dragged into a new order, as Trello lifts a card: a
587
+ * copy of it rises over the list and follows the pointer, never past the
588
+ * list's ends, while the row itself stays in the list as the empty place it
589
+ * will drop into (its host draws its `held` class as that place) and the
590
+ * other rows slide to open it. Let go, the copy settles into the place.
591
+ * `within` is the list's box, read as it moves (it may scroll). `pad` is
592
+ * room above and below a row drawn tight to its content (the sidebar's),
593
+ * so the copy reads as a card around it; its host draws the place as tall.
594
+ */
595
+ export declare const liftRow: (row: HTMLElement, within: () => DOMRect | null, { pad }?: {
596
+ pad?: number;
597
+ }) => LiftedRow;
598
+ /**
599
+ * A copy of an element as it looks now, for something carried over the page
600
+ * (a dragged card, a row being reordered): every element with its computed
601
+ * styles written on it, so it keeps its look away from the styles that drew
602
+ * it in its place. It never takes the pointer, nothing in it animates, and a
603
+ * row drawn on its list's background gets its own, to be lifted on.
604
+ */
605
+ export declare const snapshot: (source: HTMLElement) => HTMLElement;
606
+ /**
607
+ * A list's rows dragged into a new order where they stand, as the Columns
608
+ * menu's: a copy of the row in hand follows the pointer (`liftRow`) while
609
+ * the row itself shows as the empty place it will drop into (`heldId`, for
610
+ * the host to draw), the others make room (the list slides them with
611
+ * `useFlip`), and dropped, the copy settles into the place and `onMove`
612
+ * takes the new order once. Each row carries `data-row`; the one in hand
613
+ * drops its `data-flip`, so the slides leave it alone. The list's first row
614
+ * starts at the list's top. `pad` gives the copy room around a row drawn
615
+ * tight to its content (`liftRow`).
616
+ */
617
+ export declare function useDragOrder<Id extends string>(listRef: RefObject<HTMLElement | null>, settled: readonly Id[], onMove: (order: Id[]) => void, { pad }?: {
618
+ pad?: number;
619
+ }): {
620
+ heldId: Id | undefined;
621
+ moveBy: (id: Id, step: -1 | 1) => void;
622
+ order: readonly Id[];
623
+ take: (id: Id, event: PointerEvent<HTMLElement>) => void;
624
+ };
625
+ interface PriceProps {
626
+ /** Names the field when no visible label is tied to it. */
627
+ "aria-label"?: string;
628
+ currencySelector?: boolean;
629
+ defaultCurrency?: string;
630
+ defaultValue?: string;
631
+ disabled?: boolean;
632
+ id?: string;
633
+ max?: number;
634
+ min?: number;
635
+ name?: string;
636
+ onChange?: (value: string) => void;
637
+ onCurrencyChange?: (curency: string) => void;
638
+ options?: {
639
+ label: string;
640
+ value: string;
641
+ }[];
642
+ required?: boolean;
643
+ }
644
+ declare function PriceInput({ "aria-label": ariaLabel, id, options, currencySelector, defaultCurrency, defaultValue, disabled, name, onChange, onCurrencyChange, required, min, max }: PriceProps): import("react").JSX.Element;
645
+ interface RadioButtonProps extends InputHTMLAttributes<HTMLInputElement> {}
646
+ declare function RadioButton({ ...rest }: RadioButtonProps): import("react").JSX.Element;
647
+ export interface SelectOption {
648
+ defaultValue?: string;
649
+ /**
650
+ * A softer line under the label, searched as well: what tells two alike
651
+ * apart, as an email under a name. Only the app's list shows it.
652
+ */
653
+ description?: string;
654
+ label: string;
655
+ selected?: boolean;
656
+ value: string;
657
+ }
658
+ export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
659
+ defaultValue?: string;
660
+ options?: SelectOption[];
661
+ placeholder?: string;
662
+ readOnly?: boolean;
663
+ /**
664
+ * The list opens with its search whatever its length, and on a touch
665
+ * screen too: a roster of people, where one is found by typing and names
666
+ * alike read apart by their description.
667
+ */
668
+ searchable?: boolean;
669
+ /**
670
+ * "standard" is the compact select of a toolbar ("Sorted by", "Currency"):
671
+ * its choice underlined with a chevron, as wide as what it reads.
672
+ */
673
+ variant?: "outlined" | "standard";
674
+ }
675
+ /**
676
+ * One option out of a list known up front. On a computer it opens the app's
677
+ * own list, the same everywhere, with a search over it once the list is
678
+ * long or `searchable`; on a touch screen a short list opens the device's
679
+ * own picker. A choice that searches the server or takes free text is an
680
+ * Autocomplete instead. Several at once stay the native select.
681
+ */
682
+ declare function Select({ searchable, ...props }: SelectProps): import("react").JSX.Element;
683
+ interface RangeSliderProps {
684
+ /** Names each thumb for screen readers: "Minimum price", "Maximum price". */
685
+ labels?: [string, string];
686
+ max: number;
687
+ min: number;
688
+ onChange: (value: [number, number]) => void;
689
+ step?: number;
690
+ value: [number, number];
691
+ }
692
+ /**
693
+ * Two thumbs on one track, for picking a range (a price band). Two native
694
+ * range inputs stacked on the `.ui-slider` track: keyboard and touch come
695
+ * for free, and the thumbs can't cross — each one stops at the other.
696
+ */
697
+ declare function RangeSlider({ labels, max, min, onChange, step, value }: RangeSliderProps): import("react").JSX.Element;
698
+ export interface SeparatorProps {
699
+ orientation: "vertical" | "horizontal";
700
+ }
701
+ declare function Separator({ orientation }: SeparatorProps): import("react").JSX.Element;
702
+ interface SpinnerProps {
703
+ color?: "dark" | "light";
704
+ size?: number;
705
+ }
706
+ declare function Spinner({ size }: SpinnerProps): import("react").JSX.Element;
707
+ interface Props {
708
+ children: ReactNode;
709
+ }
710
+ /** Provides `StatusContext` and renders the toast its `setStatus` raises. */
711
+ declare function StatusManager({ children }: Props): import("react").JSX.Element;
712
+ interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
713
+ defaultChecked?: boolean;
714
+ onChange?: (checked: boolean) => void;
715
+ size: "l" | "s";
716
+ }
717
+ declare function Switch({ defaultChecked, onChange, size, ...rest }: SwitchProps): import("react").JSX.Element;
718
+ interface Tab {
719
+ /** Shown as a small badge after the label (e.g. a queue size, or "10,000+"). */
720
+ count?: number | string;
721
+ label: string;
722
+ /** A small dot after the label: something in the tab waits, unsaved. */
723
+ mark?: boolean;
724
+ onClick: () => void;
725
+ }
726
+ interface TabsProps extends HTMLAttributes<HTMLDivElement> {
727
+ /** Selected tab when the parent owns the selection (e.g. it lives in the URL). */
728
+ activeIndex?: number;
729
+ tabs: Tab[];
730
+ }
731
+ declare function Tabs({ activeIndex, tabs, ...rest }: TabsProps): import("react").JSX.Element;
732
+ interface TagProps extends HTMLAttributes<HTMLParagraphElement> {
733
+ disabled?: boolean;
734
+ label: string;
735
+ onRemove?: () => void;
736
+ type: "default" | "positive" | "warning" | "negative" | "disabled";
737
+ }
738
+ declare function Tag({ disabled: _disabled, label, type, onRemove, ...rest }: TagProps): import("react").JSX.Element;
739
+ interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
740
+ /**
741
+ * Grows with its text, from about two lines to a ceiling, then scrolls:
742
+ * a long note reads whole instead of hiding under the box's edge.
743
+ */
744
+ autoGrow?: boolean;
745
+ label?: string;
746
+ }
747
+ declare function TextArea({ autoGrow, label, defaultValue, ...rest }: TextAreaProps): import("react").JSX.Element;
748
+ interface TextInputProps extends InputHTMLAttributes<HTMLInputElement> {
749
+ error?: string;
750
+ icon?: string;
751
+ isLoading?: boolean;
752
+ label?: string;
753
+ }
754
+ declare function TextInput({ icon, id, isLoading, label, error, ...rest }: TextInputProps): import("react").JSX.Element;
755
+ export type ThemeName = "dark" | "light";
756
+ /**
757
+ * Shows `theme` and saves it as the visitor's choice. With `persist: false`
758
+ * it is shown and not saved: a look one page asks for (an agency's own mode)
759
+ * must not become the choice the next page starts from.
760
+ */
761
+ export type SetTheme = (theme: ThemeName, options?: {
762
+ persist?: boolean;
763
+ }) => void;
764
+ export type ThemeContextValue = [ThemeName, SetTheme];
765
+ /** `[theme, setTheme]`, provided by `ThemeProvider`. */
766
+ export declare const ThemeContext: import("react").Context<ThemeContextValue>;
767
+ export interface ThemeProviderProps {
768
+ /**
769
+ * Apply the class and save the choice inside `setTheme`, before React
770
+ * re-renders: consumers that read the computed tokens while rendering
771
+ * (charts) must already get the new theme's values.
772
+ */
773
+ applyBeforeRender?: boolean;
774
+ children: ReactNode;
775
+ /** With no saved choice, follow the device (`prefers-color-scheme`). */
776
+ followSystem?: boolean;
777
+ /**
778
+ * Repaint `<meta name="theme-color">` with the theme's `--bgPrimary`: the
779
+ * browser paints the installed app's status-bar strip from it.
780
+ */
781
+ syncThemeColor?: boolean;
782
+ }
783
+ /**
784
+ * The visitor's own theme: the one they chose, else the device's when the
785
+ * app follows it, else light. What a page that showed another look goes back to.
786
+ */
787
+ export declare const savedTheme: (followSystem?: boolean) => ThemeName;
788
+ /**
789
+ * Owns the light/dark theme: the `light`/`dark` class on <body>, the choice
790
+ * saved under `localStorage.theme`, and `ThemeContext`.
791
+ */
792
+ declare function ThemeProvider({ applyBeforeRender, children, followSystem, syncThemeColor }: ThemeProviderProps): import("react").JSX.Element;
793
+ /**
794
+ * The light/dark toggle: a 56×32 pill whose knob slides between the moon and
795
+ * the sun (300ms easeOutExpo) and shrinks on hover.
796
+ */
797
+ declare function ThemeSwitch(): import("react").JSX.Element;
798
+ interface TimeInputProps {
799
+ defaultTime?: string;
800
+ disabled?: boolean;
801
+ id?: string;
802
+ maxTime?: string;
803
+ minTime?: string;
804
+ name?: string;
805
+ onChange?: (time: string) => void;
806
+ required?: boolean;
807
+ }
808
+ declare function TimeInput({ id, defaultTime, disabled, name, onChange, required, minTime, maxTime }: TimeInputProps): import("react").JSX.Element;
809
+ export interface ToastAction {
810
+ /** Its mark before the label, as Undo's rotate-left. */
811
+ icon?: string;
812
+ label: string;
813
+ onClick: () => void;
814
+ }
815
+ export interface ToastProps {
816
+ /** One thing to do about it, before the ring or the close: Undo. */
817
+ action?: ToastAction;
818
+ autoClose?: boolean;
819
+ description: string;
820
+ setVisible: (state: boolean) => void;
821
+ type: "info" | "success" | "warning" | "error";
822
+ visible: boolean;
823
+ }
824
+ declare function Toast({ action, autoClose, description, type, visible, setVisible }: ToastProps): false | import("react").JSX.Element;
825
+ export type TourStep = Omit<Step, "skipBeacon"> & {
826
+ /**
827
+ * When set, the Tour adds the `tour-highlighted` class to the step's target
828
+ * while the step is active (and removes it when the step changes or the tour
829
+ * closes). Useful for elements that need extra visual emphasis beyond the
830
+ * spotlight hole — e.g. revealing hidden actions on hover-only menus.
831
+ */
832
+ highlight?: boolean;
833
+ /**
834
+ * "compact" sizes the hole to the target's CONTENT (measured with a
835
+ * Range) instead of its padded box — for anchors like the bottom tabs,
836
+ * which stretch a third of the screen while their icon + label sit in a
837
+ * small centred cluster.
838
+ */
839
+ spotlight?: "compact";
840
+ /**
841
+ * Alternative takes on the same step, in order of preference: of the steps
842
+ * sharing a `oneOf` key, only the first whose target is visible survives.
843
+ * For a target that may or may not be there (a photo grid that only exists
844
+ * once there are photos) with a fallback anchor that always is.
845
+ */
846
+ oneOf?: string;
847
+ /**
848
+ * Set when `onBeforeStep` is what PUTS the target on screen (switching a
849
+ * tab, opening a panel). Such a step survives the "is the target visible"
850
+ * filter below, since the check runs before the callback — only set it
851
+ * when the callback guarantees the target.
852
+ */
853
+ bringsOwnTarget?: boolean;
854
+ /** How long a `bringsOwnTarget` step waits for its target, then is passed over. */
855
+ targetWaitMs?: number;
856
+ /**
857
+ * Clicking the target moves the tour on, as Next does: for a step that asks
858
+ * the person to click it (a menu, then the option it opens).
859
+ */
860
+ advanceOnTargetClick?: boolean;
861
+ /** Glides the target into view, if it isn't, before the step shows. */
862
+ scrollToTarget?: boolean;
863
+ /**
864
+ * Runs just before the step is shown: switching to the tab the target
865
+ * lives on, scrolling it into view — whatever the step needs the screen to
866
+ * be doing.
867
+ */
868
+ onBeforeStep?: () => void;
869
+ };
870
+ interface TourProps {
871
+ onClose?: () => void;
872
+ run: boolean;
873
+ setRun: (run: boolean) => void;
874
+ steps: TourStep[];
875
+ }
876
+ declare function Tour({ steps, run, setRun, onClose }: TourProps): import("react").JSX.Element | null;
877
+ interface ToggleOption {
878
+ /** Something after the label, such as an unread mark. */
879
+ icon?: React.ReactNode;
880
+ /** A kit icon before the label, as a view switch shows each view. */
881
+ iconLeft?: string;
882
+ label: string;
883
+ onClick: () => void;
884
+ }
885
+ interface ToggleProps extends HTMLAttributes<HTMLDivElement> {
886
+ /** A negative index selects nothing — no option is highlighted. */
887
+ defaultSelected?: number;
888
+ disabled?: boolean;
889
+ options: ToggleOption[];
890
+ size?: "l" | "s" | "xl";
891
+ }
892
+ declare function Toggle({ options, defaultSelected, disabled, size, ...rest }: ToggleProps): import("react").JSX.Element;
893
+ interface TooltipProps {
894
+ children: React.ReactNode;
895
+ className?: string;
896
+ /** Off: no bubble and no help cursor — a label only worth showing sometimes. */
897
+ disabled?: boolean;
898
+ /** Usually a line of text; a list when there is more than one thing to say. */
899
+ label: React.ReactNode;
900
+ }
901
+ /**
902
+ * A hover label. The bubble renders on `document.body` at fixed viewport
903
+ * coordinates, so a scrolling rail or a card with `overflow: hidden` can't
904
+ * clip it. It opens below the anchor, left edges aligned; it moves above
905
+ * when there is no room below and slides left to stay on screen. Its arrow
906
+ * points at the anchor's middle, wherever the bubble slid to. Content
907
+ * that needs its own styles must carry them (a styled element as `label`),
908
+ * since the bubble no longer sits inside the host's markup.
909
+ */
910
+ declare function Tag$1({ label, children, className, disabled, ...rest }: TooltipProps): import("react").JSX.Element;
911
+ export interface StatusProps {
912
+ /**
913
+ * One thing to do about what the toast says, as Undo: a click does it
914
+ * and closes the toast.
915
+ */
916
+ action?: ToastProps["action"];
917
+ autoClose?: boolean;
918
+ description: string;
919
+ type: ToastProps["type"];
920
+ }
921
+ export type SetStatus = (status: StatusProps) => void;
922
+ /** `setStatus` — raises a toast from anywhere under `StatusManager`. */
923
+ export declare const StatusContext: import("react").Context<SetStatus>;
924
+ export type HapticKind = "error" | "success" | "tap";
925
+ /**
926
+ * A short haptic for the few moments that deserve one: approving, saving,
927
+ * committing to a booking ("tap"), a payment that went through ("success"),
928
+ * a booking that could not be confirmed ("error").
929
+ *
930
+ * The web has no haptics API that reaches both phones, so there are two
931
+ * paths. Where the Vibration API exists (Android), `navigator.vibrate`. iOS
932
+ * has none, but since iOS 18 toggling a switch (`<input type="checkbox"
933
+ * switch>`) plays the system haptic, also through a click on its label — so a
934
+ * hidden one is toggled and dropped. That path is a WebKit quirk, not an API:
935
+ * it only plays inside the user's tap (one tick, whatever the kind), Apple
936
+ * reportedly closed it in iOS 26.5, and where it plays nothing it changes
937
+ * nothing.
938
+ *
939
+ * Call it synchronously from the tap's handler, before any `await`. A caller
940
+ * outside a tap (an effect, a timer) passes `{ inGesture: false }` and gets
941
+ * the vibration only. It never throws: a haptic must not break the action.
942
+ */
943
+ export declare const haptic: (kind?: HapticKind, { inGesture }?: {
944
+ inGesture?: boolean;
945
+ }) => void;
946
+ /**
947
+ * Which placeholder a failed photo shows: a hotel's blurred room, a person's
948
+ * silhouette, or a picture glyph for everything else (trip covers, places).
949
+ */
950
+ export type ImageKind = "avatar" | "lodging" | "photo";
951
+ /**
952
+ * The media proxy answers a photo it can't serve (expired, deleted, from
953
+ * another environment) with 200 and a 1×1 pixel, so `error` never fires: the
954
+ * size is what gives it away. Exactly 1×1 — an SVG without a size of its own
955
+ * loads as 0×0 and is a real image.
956
+ */
957
+ export declare const isPlaceholderPixel: (image: HTMLImageElement) => boolean;
958
+ /**
959
+ * Whether an <img> gave up on its photo and shows a placeholder — true from
960
+ * inside its own `onError`/`onLoad`, since the document listener runs first.
961
+ */
962
+ export declare const showsImageFallback: (image: HTMLImageElement) => boolean;
963
+ /**
964
+ * Every <img> that fails to load, or loads the media proxy's 1×1 pixel, shows
965
+ * the placeholder instead of a broken icon, its alt text or a solid block.
966
+ * `load` and `error` don't bubble, so one capture listener on the document
967
+ * sees every image; a component's own `onError` still runs after it and wins.
968
+ * Returns the uninstall.
969
+ */
970
+ export declare const installImageFallbacks: () => (() => void);
971
+ /** Reload once when a tab from a previous release requests a removed lazy chunk. */
972
+ export declare const recoverStaleAssets: () => void;
973
+ /**
974
+ * The photo once it loaded as a real image, for a CSS background — which has
975
+ * no `error` to fall back on and paints the proxy's pixel as a solid block.
976
+ * Nothing while it loads or when it failed, so the element keeps its own
977
+ * background; `onBroken` hears of a photo that failed or came back as the
978
+ * proxy's pixel.
979
+ */
980
+ export declare const useLoadedImage: (src?: string, onBroken?: () => void) => string | undefined;
981
+ type SessionAttributes = Record<string, string | number | boolean | undefined>;
982
+ /**
983
+ * Starts CloudWatch RUM for one app. No-op locally and whenever the app
984
+ * monitor id is missing, which is also the kill switch: the id stays unset in
985
+ * Amplify until the API is deployed with `X-Amzn-Trace-Id` allowed by CORS.
986
+ */
987
+ export declare const initRum: (app: string, appMonitorId: string | undefined, releaseId: string) => void;
988
+ export declare const recordError: (error: unknown) => void;
989
+ /** Attributes are searchable in Transaction Search. Never email or name. */
990
+ export declare const tagSession: (attributes: SessionAttributes) => void;
991
+ /**
992
+ * Browser glue for a booking-site theme. The theme itself (which variables,
993
+ * which values) is computed by `siteThemeVars` in `@nicer/catalog`; this module
994
+ * only writes it into the document, so `@nicer/ui` stays free of contracts.
995
+ */
996
+ type StyleTarget = {
997
+ style: {
998
+ setProperty: (name: string, value: string) => void;
999
+ removeProperty: (name: string) => string;
1000
+ };
1001
+ };
1002
+ /**
1003
+ * Sets `vars` on `target` (the body by default) and clears every name in
1004
+ * `managed` that this theme no longer sets, so switching themes never leaves
1005
+ * a stale color behind. The body, not the root: dark mode redefines the same
1006
+ * tokens on `body.dark`, which hid every color set on <html> but the brand's.
1007
+ */
1008
+ export declare const applyCssVars: (vars: Record<string, string>, managed?: readonly string[], target?: StyleTarget) => void;
1009
+ /** One `<link id="site-font">`; `null` removes it. */
1010
+ export declare const setFontStylesheet: (href: string | null) => void;
1011
+ export declare const setFavicon: (href: string) => void;
1012
+ /** `<meta name=…>`; created when missing. */
1013
+ export declare const setMetaContent: (name: string, content: string) => void;
1014
+ /**
1015
+ * The JSON the page renderer inlines as `<script type="application/json"
1016
+ * id="nicer-site">`. `undefined` when the page was not served by the renderer.
1017
+ */
1018
+ export declare const readInlineJson: <T>(id: string) => T | undefined;
1019
+ export { Actions, AgencyMark, Autocomplete, Button, Calendar, type CardBrand, CardInput, Check, DateInput, DetailDrawer, Dialog, Dropdown, EmptyState, ErrorBoundary, FileInput, Grip, Icon, IconButton, type LiftedRow, MaintenanceGate, Modal, NavButton, NumberInput, Overlay, Paginator, PhoneInput, PriceInput, RadioButton, RangeSlider, Select, Separator, SideNav, SignInCard, Spinner, StatusManager, Switch, Tabs, Tag, TextArea, TextInput, ThemeProvider, ThemeSwitch, TimeInput, Toast, Toggle, Tag$1 as Tooltip, Tour, cards };