fiboui 2.8.4 → 2.9.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.
package/dist/layout.d.ts CHANGED
@@ -1 +1,1680 @@
1
- export { Center, Column, Container, Row, Spacer, Scaffold, Header, Sidebar, DashboardLayout, ZStack, Line, ScrollView, ScrollController, VirtualColumn } from './index.js';
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import React$1 from 'react';
4
+ import { CSSProperties, ReactElement, ReactNode } from 'react';
5
+
6
+ type Buildable = {
7
+ /** @deprecated Builders are React elements; `.build()` is optional. */
8
+ build(): React$1.ReactNode;
9
+ };
10
+ type FiboChild = React$1.ReactNode | Buildable;
11
+ type FiboChildren = FiboChild | readonly FiboChild[] | (() => FiboChild | readonly FiboChild[]);
12
+ type FiboThemeName = "material" | "cupertino" | "web" | "noir";
13
+ interface ResponsiveStyles {
14
+ mobile?: React$1.CSSProperties;
15
+ tablet?: React$1.CSSProperties;
16
+ desktop?: React$1.CSSProperties;
17
+ }
18
+ type Alignment = "start" | "center" | "end" | "stretch";
19
+ type MainAxisAlignment = "start" | "center" | "end" | "spaceBetween" | "spaceAround" | "spaceEvenly";
20
+ type CrossAxisAlignment = Alignment;
21
+ type AlignAxis = "start" | "center" | "end" | "stretch" | "baseline" | "between" | "around" | "evenly" | "space-between" | "space-around" | "space-evenly" | "spaceBetween" | "spaceAround" | "spaceEvenly";
22
+ interface TextStyle {
23
+ fontSize?: string | number;
24
+ fontWeight?: string | number;
25
+ fontFamily?: string;
26
+ color?: string;
27
+ lineHeight?: string | number;
28
+ letterSpacing?: string | number;
29
+ }
30
+ declare const FIBO_BREAKPOINTS: {
31
+ readonly sm: 640;
32
+ readonly md: 768;
33
+ readonly lg: 1024;
34
+ readonly xl: 1280;
35
+ };
36
+ type BreakpointKey = keyof typeof FIBO_BREAKPOINTS;
37
+ type Listener<T> = (value: T) => void;
38
+ type Unsubscribe = () => void;
39
+ interface Subscribable<T> {
40
+ subscribe(listener: Listener<T>): Unsubscribe;
41
+ subscribeEffect(effect: Effect): void;
42
+ unsubscribeEffect(effect: Effect): void;
43
+ }
44
+ interface BindableSignal<T = unknown> {
45
+ readonly value: T;
46
+ subscribe(listener: Listener<T>): Unsubscribe;
47
+ }
48
+ declare class Effect {
49
+ private fn;
50
+ private dependencies;
51
+ private _onDispose?;
52
+ constructor(fn: () => void);
53
+ run(): void;
54
+ track(dep: Subscribable<any>): void;
55
+ trigger(): void;
56
+ cleanup(): void;
57
+ dispose(): void;
58
+ }
59
+ declare class Signal<T> implements Subscribable<T> {
60
+ private _value;
61
+ private listeners;
62
+ private effects;
63
+ private readonly _initial;
64
+ constructor(_value: T);
65
+ get value(): T;
66
+ /** Current value without tracking. Replays use this so a node does not subscribe twice. */
67
+ peek(): T;
68
+ set value(newValue: T);
69
+ /** Replace the value. Same notify path as `.value = next`. */
70
+ set(next: T): this;
71
+ /**
72
+ * Write a value, or an updater `(prev) => next`.
73
+ * Function-valued signals should use `.set()` / `.value =` so the function is stored, not called.
74
+ * Not named `update`: `listSignal.update(id, patch)` is the item patch.
75
+ */
76
+ change(next: T | ((prev: T) => T)): this;
77
+ /** Restore the value passed to `signal(initial)`. */
78
+ reset(): this;
79
+ subscribe(listener: Listener<T>): Unsubscribe;
80
+ subscribeEffect(effect: Effect): void;
81
+ unsubscribeEffect(effect: Effect): void;
82
+ private _notifyDepth;
83
+ private notify;
84
+ }
85
+ declare class Observable<T> implements Subscribable<T> {
86
+ private _value;
87
+ private listeners;
88
+ private effects;
89
+ constructor(_value: T);
90
+ get(): T;
91
+ set(newValue: T): void;
92
+ subscribe(listener: Listener<T>): Unsubscribe;
93
+ subscribeEffect(effect: Effect): void;
94
+ unsubscribeEffect(effect: Effect): void;
95
+ private notify;
96
+ }
97
+ type GestureMask = "all" | "gesture" | "subviews" | "none";
98
+ type TapLocation = {
99
+ x: number;
100
+ y: number;
101
+ };
102
+ declare abstract class GestureBuilder {
103
+ protected _enabled: boolean;
104
+ protected _including: GestureMask;
105
+ /** When true, wrappers must not stopPropagation (simultaneous). */
106
+ protected _bubble: boolean;
107
+ /** @internal Fired when the gesture successfully recognizes (Sequence / Exclusive). */
108
+ protected _onRecognized?: () => void;
109
+ enabled(value?: boolean): this;
110
+ /** SwiftUI `gesture(_:including:)`. */
111
+ including(mask: GestureMask): this;
112
+ /** Internal — set by SimultaneousGesture / `.simultaneousGesture`. */
113
+ bubble(value?: boolean): this;
114
+ /** @internal Used by SequenceGesture / ExclusiveGesture. */
115
+ onRecognized(callback: () => void): this;
116
+ /** @internal */
117
+ protected notifyRecognized(): void;
118
+ abstract wrap(children: React$1.ReactNode): React$1.ReactNode;
119
+ }
120
+ interface AnimationOptions {
121
+ duration?: number;
122
+ curve?: "linear" | "easeIn" | "easeOut" | "easeInOut" | "spring" | string;
123
+ damping?: number;
124
+ stiffness?: number;
125
+ velocity?: number;
126
+ mass?: number;
127
+ onComplete?: () => void;
128
+ }
129
+ interface Signal<T> {
130
+ spring(target: T, options?: Partial<AnimationOptions>): void;
131
+ animate(target: T, options?: Partial<AnimationOptions>): void;
132
+ snapTo(target: T, options?: Partial<AnimationOptions>): void;
133
+ }
134
+ declare const INTERACTION_EFFECTS: readonly [
135
+ "grow",
136
+ "shrink",
137
+ "pulse",
138
+ "pulseGrow",
139
+ "pulseShrink",
140
+ "push",
141
+ "pop",
142
+ "bounceIn",
143
+ "bounceOut",
144
+ "rotate",
145
+ "growRotate",
146
+ "float",
147
+ "sink",
148
+ "bob",
149
+ "hang",
150
+ "skew",
151
+ "skewForward",
152
+ "skewBackward",
153
+ "wobbleHorizontal",
154
+ "wobbleVertical",
155
+ "wobbleToBottomRight",
156
+ "wobbleToTopRight",
157
+ "wobbleTop",
158
+ "wobbleBottom",
159
+ "wobbleSkew",
160
+ "buzz",
161
+ "buzzOut",
162
+ "forward",
163
+ "backward",
164
+ "nudge",
165
+ "fade",
166
+ "backPulse",
167
+ "sweepToRight",
168
+ "sweepToLeft",
169
+ "sweepToBottom",
170
+ "sweepToTop",
171
+ "bounceToRight",
172
+ "bounceToLeft",
173
+ "bounceToBottom",
174
+ "bounceToTop",
175
+ "radialOut",
176
+ "radialIn",
177
+ "rectangleIn",
178
+ "rectangleOut",
179
+ "shutterInHorizontal",
180
+ "shutterOutHorizontal",
181
+ "shutterInVertical",
182
+ "shutterOutVertical",
183
+ "iconBack",
184
+ "iconForward",
185
+ "iconDown",
186
+ "iconUp",
187
+ "iconSpin",
188
+ "iconDrop",
189
+ "iconFade",
190
+ "iconFloatAway",
191
+ "iconSinkAway",
192
+ "iconGrow",
193
+ "iconShrink",
194
+ "iconPulse",
195
+ "iconPulseGrow",
196
+ "iconPulseShrink",
197
+ "iconPush",
198
+ "iconPop",
199
+ "iconBounce",
200
+ "iconRotate",
201
+ "iconGrowRotate",
202
+ "iconFloat",
203
+ "iconSink",
204
+ "iconBob",
205
+ "iconHang",
206
+ "iconWobbleHorizontal",
207
+ "iconWobbleVertical",
208
+ "iconBuzz",
209
+ "iconBuzzOut",
210
+ "borderFade",
211
+ "hollow",
212
+ "trim",
213
+ "rippleOut",
214
+ "rippleIn",
215
+ "outlineOut",
216
+ "outlineIn",
217
+ "roundCorners",
218
+ "underlineFromLeft",
219
+ "underlineFromCenter",
220
+ "underlineFromRight",
221
+ "reveal",
222
+ "underlineReveal",
223
+ "overlineFromLeft",
224
+ "overlineFromCenter",
225
+ "overlineFromRight",
226
+ "overlineReveal",
227
+ "shadowGrow",
228
+ "shadowFloat",
229
+ "shadowGlow",
230
+ "shadowRadial",
231
+ "boxShadowOutset",
232
+ "boxShadowInset",
233
+ "lift",
234
+ "glow",
235
+ "bubbleTop",
236
+ "bubbleRight",
237
+ "bubbleBottom",
238
+ "bubbleLeft",
239
+ "bubbleFloatTop",
240
+ "bubbleFloatRight",
241
+ "bubbleFloatBottom",
242
+ "bubbleFloatLeft",
243
+ "curlTopLeft",
244
+ "curlTopRight",
245
+ "curlBottomRight",
246
+ "curlBottomLeft"
247
+ ];
248
+ type InteractionEffectName = (typeof INTERACTION_EFFECTS)[number];
249
+ interface LogicalAxes {
250
+ paddingHorizontal(value: string | number): this;
251
+ paddingVertical(value: string | number): this;
252
+ paddingX(value: string | number): this;
253
+ paddingY(value: string | number): this;
254
+ px(value: string | number): this;
255
+ py(value: string | number): this;
256
+ marginHorizontal(value: string | number): this;
257
+ marginVertical(value: string | number): this;
258
+ marginX(value: string | number): this;
259
+ marginY(value: string | number): this;
260
+ mx(value: string | number): this;
261
+ my(value: string | number): this;
262
+ borderHorizontal(value: string | number): this;
263
+ borderVertical(value: string | number): this;
264
+ borderX(value: string | number): this;
265
+ borderY(value: string | number): this;
266
+ borderWidthHorizontal(value: string | number): this;
267
+ borderWidthVertical(value: string | number): this;
268
+ borderColorHorizontal(value: string | number): this;
269
+ borderColorVertical(value: string | number): this;
270
+ roundedTop(value: string | number): this;
271
+ roundedBottom(value: string | number): this;
272
+ roundedLeft(value: string | number): this;
273
+ roundedRight(value: string | number): this;
274
+ insetHorizontal(value: string | number): this;
275
+ insetVertical(value: string | number): this;
276
+ insetX(value: string | number): this;
277
+ insetY(value: string | number): this;
278
+ gapX(value: string | number): this;
279
+ gapY(value: string | number): this;
280
+ }
281
+ interface PseudoStateBuilder extends LogicalAxes {
282
+ boxShadow(value: string | number): this;
283
+ }
284
+ declare class PseudoStateBuilder {
285
+ private pseudoState;
286
+ private parentBuilder;
287
+ private isGroup;
288
+ private transitionDuration;
289
+ private transitionEasing;
290
+ private transitionDelay;
291
+ private transitionProperties;
292
+ private transforms;
293
+ private _boxLonghands;
294
+ constructor(pseudoState: string, parentBuilder: FiboBuilder, isGroup?: boolean);
295
+ /**
296
+ * Apply a named interaction effect (full Hover.css–inspired catalog).
297
+ * Works on any pseudo trigger — hover, press/active, focus, groupHover, etc.
298
+ * Stamps CSS classes; sheet is fiboui-owned (not a Hover.css vendor).
299
+ */
300
+ effect(name: InteractionEffectName | string): this;
301
+ bg(color: string): this;
302
+ /** Same longhand as `.bg()` — interpolates against the resting surface. */
303
+ backgroundColor(value: string): this;
304
+ color(value: string): this;
305
+ text(color: string): this;
306
+ opacity(value: number): this;
307
+ borderColor(value: string): this;
308
+ transform(value: string): this;
309
+ scale(value: number): this;
310
+ translateX(value: number | string): this;
311
+ translateY(value: number | string): this;
312
+ rotate(degrees: number): this;
313
+ shadow(value: string | number): this;
314
+ css(property: string, value: string | number): this;
315
+ padding(value: string | number): this;
316
+ p(value: string | number): this;
317
+ margin(value: string | number): this;
318
+ transition(value: string): this;
319
+ transition(properties: string | string[], duration: number, easing?: string, delay?: number): this;
320
+ duration(ms: number): this;
321
+ easing(value: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "spring" | string): this;
322
+ ease(value: string): this;
323
+ delay(ms: number): this;
324
+ properties(props: string[]): this;
325
+ private applyTransition;
326
+ private flushTransform;
327
+ private set;
328
+ private commit;
329
+ end(): FiboBuilder;
330
+ }
331
+ declare const When: {
332
+ readonly hover: "hover";
333
+ readonly focus: "focus";
334
+ readonly active: "active";
335
+ readonly visited: "visited";
336
+ readonly disabled: "disabled";
337
+ readonly on: "on";
338
+ readonly off: "off";
339
+ readonly checked: "checked";
340
+ readonly unchecked: "unchecked";
341
+ readonly indeterminate: "indeterminate";
342
+ readonly mixed: "mixed";
343
+ };
344
+ type When = (typeof When)[keyof typeof When];
345
+ type WhenStyle = React$1.CSSProperties | string | ((builder: any) => void);
346
+ declare const Size: {
347
+ readonly full: "full";
348
+ readonly screen: "screen";
349
+ readonly fit: "fit";
350
+ readonly min: "min";
351
+ readonly max: "max";
352
+ /** SwiftUI `.infinity` — expand to the space the parent proposes (`100%`). */
353
+ readonly infinity: "infinity";
354
+ };
355
+ type Size = (typeof Size)[keyof typeof Size];
356
+ declare const StackAlign: {
357
+ readonly center: "center";
358
+ readonly top: "top";
359
+ readonly bottom: "bottom";
360
+ readonly left: "left";
361
+ readonly right: "right";
362
+ readonly topLeft: "topLeft";
363
+ readonly topRight: "topRight";
364
+ readonly bottomLeft: "bottomLeft";
365
+ readonly bottomRight: "bottomRight";
366
+ /** SwiftUI `leading` → `left` */
367
+ readonly leading: "left";
368
+ /** SwiftUI `trailing` → `right` */
369
+ readonly trailing: "right";
370
+ /** SwiftUI `topLeading` → `topLeft` */
371
+ readonly topLeading: "topLeft";
372
+ /** SwiftUI `topTrailing` → `topRight` */
373
+ readonly topTrailing: "topRight";
374
+ /** SwiftUI `bottomLeading` → `bottomLeft` */
375
+ readonly bottomLeading: "bottomLeft";
376
+ /** SwiftUI `bottomTrailing` → `bottomRight` */
377
+ readonly bottomTrailing: "bottomRight";
378
+ };
379
+ type StackAlign = (typeof StackAlign)[keyof typeof StackAlign];
380
+ type FrameSize = number | string | Size;
381
+ interface FrameSpec {
382
+ width?: FrameSize;
383
+ height?: FrameSize;
384
+ minWidth?: FrameSize;
385
+ idealWidth?: FrameSize;
386
+ maxWidth?: FrameSize;
387
+ minHeight?: FrameSize;
388
+ idealHeight?: FrameSize;
389
+ maxHeight?: FrameSize;
390
+ alignment?: StackAlign | keyof typeof StackAlign;
391
+ }
392
+ type ClipShapeName = "circle" | "rounded" | "square";
393
+ interface OffsetSpec {
394
+ x?: number;
395
+ y?: number;
396
+ }
397
+ interface FixedSizeSpec {
398
+ horizontal?: boolean;
399
+ vertical?: boolean;
400
+ }
401
+ interface LayerSpec {
402
+ kind: "overlay" | "background";
403
+ child: FiboChild | (() => FiboChild);
404
+ alignment: StackAlign | keyof typeof StackAlign;
405
+ }
406
+ type ContentShapeName = "rectangle" | ClipShapeName;
407
+ type GeometryRect = {
408
+ x: number;
409
+ y: number;
410
+ width: number;
411
+ height: number;
412
+ };
413
+ type ContainerRelativeFrameSpec = {
414
+ axis?: "horizontal" | "vertical" | "both";
415
+ /** Divisions of the container (SwiftUI `count`). Default 1. */
416
+ count?: number;
417
+ /** Spans claimed (SwiftUI `span`). Default 1. */
418
+ span?: number;
419
+ };
420
+ type AlignmentGuideName = "leading" | "trailing" | "top" | "bottom" | "centerX" | "centerY" | string;
421
+ type AlignmentGuideDims = {
422
+ width: number;
423
+ height: number;
424
+ };
425
+ type AlignmentGuideSpec = {
426
+ guide: AlignmentGuideName;
427
+ /** Absolute guide position, or compute from own size (SwiftUI `ViewDimensions`). */
428
+ compute: number | ((dims: AlignmentGuideDims) => number);
429
+ };
430
+ type MatchedGeometrySpec = {
431
+ id: string;
432
+ namespace?: string;
433
+ /** SwiftUI `isSource` — source owns the shared geometry. Default true. */
434
+ isSource?: boolean;
435
+ };
436
+ type PreferenceKeyDef<T> = {
437
+ readonly __preferenceKey: true;
438
+ readonly id: string | symbol;
439
+ readonly defaultValue: T;
440
+ reduce: (value: T, nextValue: T) => T;
441
+ };
442
+ type PreferenceWriteSpec = {
443
+ key: PreferenceKeyDef<any>;
444
+ value: unknown;
445
+ };
446
+ type PreferenceReadSpec = {
447
+ key: PreferenceKeyDef<any>;
448
+ onChange: (value: any) => void;
449
+ };
450
+ declare const Edge: {
451
+ readonly top: "top";
452
+ readonly bottom: "bottom";
453
+ readonly leading: "leading";
454
+ readonly trailing: "trailing";
455
+ };
456
+ type Edge = (typeof Edge)[keyof typeof Edge];
457
+ declare const EdgeSet: {
458
+ readonly top: "top";
459
+ readonly bottom: "bottom";
460
+ readonly leading: "leading";
461
+ readonly trailing: "trailing";
462
+ readonly horizontal: "horizontal";
463
+ readonly vertical: "vertical";
464
+ readonly all: "all";
465
+ };
466
+ type EdgeSet = (typeof EdgeSet)[keyof typeof EdgeSet];
467
+ type EdgeInsetsValue = {
468
+ top?: number | string;
469
+ bottom?: number | string;
470
+ leading?: number | string;
471
+ trailing?: number | string;
472
+ /** CSS left — alias of leading in LTR */
473
+ left?: number | string;
474
+ /** CSS right — alias of trailing in LTR */
475
+ right?: number | string;
476
+ };
477
+ type SafeAreaInsetEdge = Edge | "top" | "bottom" | "leading" | "trailing" | "left" | "right";
478
+ type SafeAreaInsetSpec = {
479
+ edge: SafeAreaInsetEdge;
480
+ content: FiboChild | (() => FiboChild);
481
+ /** Gap between inset bar and content. Default 0. */
482
+ spacing?: number;
483
+ };
484
+ interface SpringOptions {
485
+ stiffness?: number;
486
+ damping?: number;
487
+ mass?: number;
488
+ }
489
+ declare const MOTION_PRESETS: readonly [
490
+ "fadeIn",
491
+ "fadeOut",
492
+ "fade",
493
+ "slideUp",
494
+ "slideDown",
495
+ "slideLeft",
496
+ "slideRight",
497
+ "scaleIn",
498
+ "scaleOut",
499
+ "scale",
500
+ "blurIn",
501
+ "blurOut",
502
+ "blur",
503
+ "pop",
504
+ "bounce"
505
+ ];
506
+ type MotionPreset = (typeof MOTION_PRESETS)[number];
507
+ interface CustomMotion {
508
+ from: Record<string, string | number>;
509
+ to: Record<string, string | number>;
510
+ duration?: number;
511
+ ease?: string;
512
+ delay?: number;
513
+ stiffness?: number;
514
+ damping?: number;
515
+ mass?: number;
516
+ }
517
+ interface ThemeColors {
518
+ primary: string;
519
+ primaryVariant?: string;
520
+ primaryContainer?: string;
521
+ onPrimaryContainer?: string;
522
+ secondary: string;
523
+ secondaryVariant?: string;
524
+ secondaryContainer?: string;
525
+ onSecondaryContainer?: string;
526
+ tertiary?: string;
527
+ onTertiary?: string;
528
+ tertiaryContainer?: string;
529
+ onTertiaryContainer?: string;
530
+ background: string;
531
+ surface: string;
532
+ surfaceVariant?: string;
533
+ onSurfaceVariant?: string;
534
+ error: string;
535
+ errorContainer?: string;
536
+ onErrorContainer?: string;
537
+ success?: string;
538
+ warning?: string;
539
+ info?: string;
540
+ onPrimary: string;
541
+ onSecondary: string;
542
+ onBackground: string;
543
+ onSurface: string;
544
+ onError: string;
545
+ /** Borders / hairlines — maps to `--fibo-outline`. */
546
+ outline?: string;
547
+ outlineVariant?: string;
548
+ /** Maps to `--fibo-surface-container-low` (M3 card surfaces). */
549
+ surfaceContainerLow?: string;
550
+ }
551
+ interface ThemeTypography {
552
+ h1: TextStyle;
553
+ h2: TextStyle;
554
+ h3: TextStyle;
555
+ h4: TextStyle;
556
+ h5: TextStyle;
557
+ h6: TextStyle;
558
+ body: TextStyle;
559
+ caption: TextStyle;
560
+ label: TextStyle;
561
+ }
562
+ interface ThemeSpacing {
563
+ xs: string;
564
+ sm: string;
565
+ md: string;
566
+ lg: string;
567
+ xl: string;
568
+ }
569
+ interface ThemeBorderRadius {
570
+ /** Maps to `--fibo-radius-xs` when set (CSS sheets already define it). */
571
+ xs?: string;
572
+ sm: string;
573
+ md: string;
574
+ lg: string;
575
+ /** Maps to `--fibo-radius-xl` when set (CSS sheets already define it). */
576
+ xl?: string;
577
+ full: string;
578
+ }
579
+ interface ThemeShadows {
580
+ sm: string;
581
+ md: string;
582
+ lg: string;
583
+ }
584
+ interface FiboTheme {
585
+ name: FiboThemeName;
586
+ colors: ThemeColors;
587
+ typography: ThemeTypography;
588
+ spacing: ThemeSpacing;
589
+ borderRadius: ThemeBorderRadius;
590
+ shadows: ThemeShadows;
591
+ fontFamily: string;
592
+ }
593
+ declare const FIBO_THEMES: {
594
+ readonly material: FiboTheme;
595
+ readonly cupertino: FiboTheme;
596
+ readonly web: FiboTheme;
597
+ readonly noir: FiboTheme;
598
+ };
599
+ type FiboThemePreset = keyof typeof FIBO_THEMES;
600
+ type ThemeInput = FiboTheme | FiboThemePreset;
601
+ declare enum Colors {
602
+ Primary = "primary",
603
+ OnPrimary = "on-primary",
604
+ PrimaryContainer = "primary-container",
605
+ OnPrimaryContainer = "on-primary-container",
606
+ Secondary = "secondary",
607
+ OnSecondary = "on-secondary",
608
+ SecondaryContainer = "secondary-container",
609
+ OnSecondaryContainer = "on-secondary-container",
610
+ Tertiary = "tertiary",
611
+ OnTertiary = "on-tertiary",
612
+ TertiaryContainer = "tertiary-container",
613
+ OnTertiaryContainer = "on-tertiary-container",
614
+ Error = "error",
615
+ OnError = "on-error",
616
+ Success = "success",
617
+ Warning = "warning",
618
+ Info = "info",
619
+ Background = "background",
620
+ OnBackground = "on-background",
621
+ Surface = "surface",
622
+ OnSurface = "on-surface",
623
+ SurfaceVariant = "surface-variant",
624
+ OnSurfaceVariant = "on-surface-variant",
625
+ Outline = "outline",
626
+ Transparent = "transparent",
627
+ Black = "black",
628
+ White = "white"
629
+ }
630
+ declare enum ShadowSize {
631
+ Sm = "sm",
632
+ Md = "md",
633
+ Lg = "lg",
634
+ Xl = "xl",
635
+ Xl2 = "2xl"
636
+ }
637
+ declare enum ShadowPreset {
638
+ Card = "card",
639
+ Button = "button",
640
+ Modal = "modal",
641
+ Float = "float",
642
+ Inner = "inner"
643
+ }
644
+ declare enum ShadowDirection {
645
+ Top = "top",
646
+ Bottom = "bottom",
647
+ Left = "left",
648
+ Right = "right",
649
+ TopBottom = "top-bottom",
650
+ LeftRight = "left-right",
651
+ Vertical = "vertical",
652
+ Horizontal = "horizontal",
653
+ All = "all"
654
+ }
655
+ type ShadowConfig = ShadowSize | ShadowPreset | string | 0 | null | [
656
+ string,
657
+ number?
658
+ ] | [
659
+ ShadowDirection | string,
660
+ ShadowSize | string
661
+ ] | [
662
+ ShadowDirection | string,
663
+ string
664
+ ] | [
665
+ ShadowDirection | string,
666
+ string,
667
+ number?
668
+ ] | [
669
+ ShadowDirection | string,
670
+ ShadowSize | string,
671
+ string,
672
+ number?
673
+ ];
674
+ type PseudoStateFn = (builder: PseudoStateBuilder) => void | PseudoStateBuilder;
675
+ declare abstract class FiboBuilder {
676
+ /** @internal Extra DOM props forwarded to the host element. */
677
+ protected _props: Record<string, any>;
678
+ protected _style: React$1.CSSProperties;
679
+ protected _cssStyles: React$1.CSSProperties;
680
+ protected _classNames: string[];
681
+ protected _children: React$1.ReactNode[];
682
+ /** Resolved theme for this subtree (SwiftUI Environment / Flutter Theme). */
683
+ protected _theme?: FiboTheme;
684
+ protected _state: Map<string, any>;
685
+ protected _providers: Map<string, any>;
686
+ protected _observers: Set<Observable<any>>;
687
+ protected _signals: Set<BindableSignal<any>>;
688
+ /** Explicit `.bindSignal()` / `.observer()` owns nested reads. A direct wire does not. */
689
+ protected _ownsReads: boolean;
690
+ /** @internal Direct `method(signal.value)` calls replayed when that signal changes. */
691
+ protected _replays: Array<() => void>;
692
+ protected _isObserver: boolean;
693
+ /** Normal-priority gestures (SwiftUI `.gesture`). Last = outermost. */
694
+ protected _gestures: GestureBuilder[];
695
+ /** SwiftUI `.simultaneousGesture` — bubble / no stopPropagation. */
696
+ protected _simultaneousGestures: GestureBuilder[];
697
+ /** SwiftUI `.highPriorityGesture` — wrapped last (outermost / capture wins). */
698
+ protected _highPriorityGestures: GestureBuilder[];
699
+ protected _offset?: OffsetSpec;
700
+ protected _clipped: boolean;
701
+ protected _clipShape?: ClipShapeName | string;
702
+ protected _contentShape?: ContentShapeName | string;
703
+ protected _fixedSize?: FixedSizeSpec;
704
+ protected _layoutPriority?: number;
705
+ protected _layers: LayerSpec[];
706
+ protected _onGeometryChange?: (rect: GeometryRect) => void;
707
+ protected _compositingGroup: boolean;
708
+ protected _viewMask?: string;
709
+ protected _containerRelativeFrame?: ContainerRelativeFrameSpec;
710
+ protected _alignmentGuide?: AlignmentGuideSpec;
711
+ protected _matchedGeometry?: MatchedGeometrySpec;
712
+ protected _preferences: PreferenceWriteSpec[];
713
+ protected _preferenceReaders: PreferenceReadSpec[];
714
+ protected _safeAreaInsets: SafeAreaInsetSpec[];
715
+ protected _navigationTitle?: string;
716
+ protected _animationConfig?: Partial<AnimationOptions>;
717
+ protected _animatedProps: Map<string, Signal<any>>;
718
+ protected _transforms: string[];
719
+ protected _transitionClass?: string;
720
+ /** True while transition class was auto-managed for hover/effect presets (expandable). */
721
+ protected _autoEffectTransition: boolean;
722
+ protected _effectTransitionProps: string[];
723
+ /**
724
+ * When true, getStyle() promotes background/border shorthands to longhands and
725
+ * (optionally) stamps a resting translate3d so pseudo transforms ease cleanly.
726
+ */
727
+ protected _smoothSurface: boolean;
728
+ protected _smoothNeedsRestTransform: boolean;
729
+ protected _motionClass?: string;
730
+ protected _staggerMs?: number;
731
+ protected _reveal?: {
732
+ preset: string;
733
+ once?: boolean;
734
+ rootMargin?: string;
735
+ threshold?: number;
736
+ };
737
+ protected _scrollProgress: boolean;
738
+ protected _viewTransition?: string;
739
+ protected _reducedMotion: "reduce" | "never";
740
+ protected _usesCssMotion: boolean;
741
+ protected _explicitScrollMargin: boolean;
742
+ /** Shrink-wrap: skip the default `w-full` / `self-stretch` on Row and Column. */
743
+ protected _hug: boolean;
744
+ /**
745
+ * SwiftUI `.frame(...)` wrappers (outer → inner order of application).
746
+ * Applied in `assembleBuilder` so every widget gets the same DX.
747
+ */
748
+ protected _frames: FrameSpec[];
749
+ /**
750
+ * Unset every CSS property on this component and what it renders inside.
751
+ * Chain `.style()`, `.px()`, `.flex()` and the rest after this to put back only what you want.
752
+ */
753
+ protected _resetStyle: boolean;
754
+ /** Kebab box longhands already stamped (`padding-left`, …) so later shorthand cannot clobber them. */
755
+ protected _boxLonghands: Set<string>;
756
+ resetStyle(): this;
757
+ protected isReset(): boolean;
758
+ hug(): this;
759
+ protected isHug(): boolean;
760
+ /**
761
+ * SwiftUI `View.frame` — invisible box around this view.
762
+ *
763
+ * ```ts
764
+ * Image(url).frame({ width: 300, height: 400 })
765
+ * Text('★★★★').frame({
766
+ * maxWidth: Size.infinity,
767
+ * maxHeight: Size.infinity,
768
+ * alignment: StackAlign.topTrailing,
769
+ * })
770
+ * ```
771
+ *
772
+ * Chainable: each `.frame()` wraps the previous (same as SwiftUI).
773
+ */
774
+ frame(spec: FrameSpec): this;
775
+ /**
776
+ * SwiftUI `.offset(x:y:)` — visual translate; layout size stays.
777
+ * `.offset(8)` ≡ `{ x: 8, y: 8 }`; `.offset({ x: 4 })` only horizontal.
778
+ */
779
+ offset(value: number | OffsetSpec): this;
780
+ /** SwiftUI `.clipped()` — overflow hidden to bounds. */
781
+ clipped(): this;
782
+ /**
783
+ * SwiftUI `.clipShape` — `'circle' | 'rounded' | 'square'` or any CSS radius
784
+ * (`'8px'`, `'50%'`). Clips drawing; hit-testing still follows layout unless
785
+ * you also set {@link contentShape}.
786
+ */
787
+ clipShape(shape: ClipShapeName | string): this;
788
+ /**
789
+ * SwiftUI `.contentShape` — region used for hit-testing (tap / long-press).
790
+ * Default `'rectangle'` = full frame box, even over transparent pixels.
791
+ *
792
+ * ```ts
793
+ * ZStack()…frame({ width: 300, height: 400 })
794
+ * .clipShape('8px')
795
+ * .contentShape('rectangle')
796
+ * .onTapGesture(open)
797
+ * ```
798
+ */
799
+ contentShape(shape?: ContentShapeName | string): this;
800
+ /**
801
+ * SwiftUI `.fixedSize(horizontal:vertical:)` — hug content on those axes.
802
+ * Defaults both axes when called with no args.
803
+ */
804
+ fixedSize(spec?: FixedSizeSpec | boolean): this;
805
+ /**
806
+ * SwiftUI `.layoutPriority` — higher resists compression and claims free space.
807
+ * Web: flex-grow / flex-shrink (not a full multi-axis proposal solver).
808
+ */
809
+ layoutPriority(value: number): this;
810
+ /** SwiftUI `.compositingGroup()`. */
811
+ compositingGroup(): this;
812
+ /** SwiftUI `.mask` — shape name or CSS mask-image value. */
813
+ mask(shapeOrCss: ClipShapeName | "rectangle" | string): this;
814
+ /** SwiftUI `containerRelativeFrame`. */
815
+ containerRelativeFrame(axis?: ContainerRelativeFrameSpec["axis"] | ContainerRelativeFrameSpec, count?: number, span?: number): this;
816
+ /**
817
+ * SwiftUI `alignmentGuide` — named guide + absolute value or compute from size.
818
+ * ```ts
819
+ * Text('Hi').alignmentGuide('leading', (d) => d.width / 2)
820
+ * ```
821
+ */
822
+ alignmentGuide(guide: AlignmentGuideName, compute: number | ((dims: {
823
+ width: number;
824
+ height: number;
825
+ }) => number)): this;
826
+ /**
827
+ * SwiftUI `matchedGeometryEffect` — shared view-transition id + measured rect.
828
+ * ```ts
829
+ * Image(url).matchedGeometryEffect('hero', { namespace: 'gallery', isSource: true })
830
+ * ```
831
+ */
832
+ matchedGeometryEffect(id: string, namespaceOrOpts?: string | {
833
+ namespace?: string;
834
+ isSource?: boolean;
835
+ }): this;
836
+ /** SwiftUI `.preference(key:value:)` — contribute upward to `.onPreferenceChange`. */
837
+ preference<T>(key: PreferenceKeyDef<T>, value: T): this;
838
+ /** SwiftUI `.onPreferenceChange` — reduce descendant preferences. */
839
+ onPreferenceChange<T>(key: PreferenceKeyDef<T>, onChange: (value: T) => void): this;
840
+ /**
841
+ * SwiftUI `.safeAreaInset(edge:)` — reserve a bar on one edge; content fills the rest.
842
+ * Distinct from `SafeArea` (notch padding) and `proxy.safeAreaInsets` (read-only).
843
+ */
844
+ safeAreaInset(edge: SafeAreaInsetEdge, content: SafeAreaInsetSpec["content"], spacing?: number): this;
845
+ /**
846
+ * SwiftUI `.navigationTitle` — stores title for Scaffold (see `Scaffold.navigationTitle`).
847
+ * On non-Scaffold builders, sets `aria-label` / data attribute only (no extra chrome bar).
848
+ */
849
+ navigationTitle(title: string): this;
850
+ /**
851
+ * SwiftUI `.overlay(alignment:) { }` — layer above this view.
852
+ * ```ts
853
+ * Image(url).overlay(Text('NEW'), StackAlign.topTrailing)
854
+ * ```
855
+ */
856
+ overlay(child: FiboChild | (() => FiboChild), alignment?: StackAlign | keyof typeof StackAlign): this;
857
+ /**
858
+ * SwiftUI `.background(alignment:) { }` — layer behind this view.
859
+ */
860
+ background(child: FiboChild | (() => FiboChild), alignment?: StackAlign | keyof typeof StackAlign): this;
861
+ /** SwiftUI `onGeometryChange` — fires on mount + resize. */
862
+ onGeometryChange(handler: (rect: GeometryRect) => void): this;
863
+ id(value: string): this;
864
+ /**
865
+ * Scroll target. Same as `.id()`, plus `scroll-margin-top` so the section
866
+ * is not hidden under a sticky header. Pair with `scrollTo('#name')`.
867
+ */
868
+ anchor(value: string): this;
869
+ /**
870
+ * Explicit `scroll-margin-top` on this node (overrides the sticky CSS variable
871
+ * that `.anchor()` applies).
872
+ */
873
+ scrollMargin(value: number | string): this;
874
+ /** Stamp a class onto the host. Used by PseudoStateBuilder (hashed `:hover` etc.). */
875
+ addClassName(name: string): this;
876
+ /**
877
+ * React list key. After this is called, React reads the key as a string
878
+ * on both the builder element and the inner host wrapper.
879
+ * Builders are valid elements — you do not need `.build()`.
880
+ */
881
+ key(value: string | number): this;
882
+ private setBoxLonghand;
883
+ private setBoxShorthand;
884
+ paddingHorizontal(value: string | number): this;
885
+ paddingVertical(value: string | number): this;
886
+ /**
887
+ * SwiftUI `.padding`:
888
+ * - `.padding(8)` — all sides
889
+ * - `.padding(EdgeSet.horizontal, 12)` — Edge.Set + value
890
+ * - `.padding({ top: 8, leading: 12 })` — EdgeInsets
891
+ */
892
+ padding(value: string | number): this;
893
+ padding(edges: EdgeSet, value: string | number): this;
894
+ padding(insets: EdgeInsetsValue): this;
895
+ /** SwiftUI `.padding` with {@link EdgeSet} — alias clarity. */
896
+ /** @deprecated Prefer `.padding(EdgeSet, n)` — same implementation. */
897
+ paddingEdges(edges: EdgeSet, value: string | number): this;
898
+ marginHorizontal(value: string | number): this;
899
+ marginVertical(value: string | number): this;
900
+ margin(value: string | number): this;
901
+ /** Inline layout wins over a host that hardcodes flex on the element (Form, Scaffold). */
902
+ protected layoutStyle(patch: React$1.CSSProperties): this;
903
+ /** Last write of a key lives in one bag so getStyle() does not let earlier `.css()` beat later `.style()`. */
904
+ private dropConflictingKeys;
905
+ private trackBoxLonghandsFrom;
906
+ flexDirection(direction: "row" | "column" | "row-reverse" | "column-reverse"): this;
907
+ /** Flutter `textDirection`. */
908
+ textDirection(direction: "ltr" | "rtl"): this;
909
+ /** Flutter `textBaseline`. Both modes align on the flex baseline. */
910
+ textBaseline(baseline: "alphabetic" | "ideographic"): this;
911
+ /** Flutter `clipBehavior`. `none` shows overflow; the other two clip. */
912
+ clip(behavior: "none" | "hardEdge" | "antiAlias"): this;
913
+ /**
914
+ * Flutter `mainAxisSize`. `min` hugs the current flex direction.
915
+ * `max` stretches along that same axis.
916
+ */
917
+ mainAxisSize(size: "min" | "max"): this;
918
+ zIndex(value: number): this;
919
+ alignItems(alignment: "start" | "center" | "end" | "stretch" | "baseline"): this;
920
+ alignSelf(alignment: "start" | "center" | "end" | "stretch" | "baseline" | "auto"): this;
921
+ flexWrap(wrap: "wrap" | "nowrap" | "wrap-reverse"): this;
922
+ /**
923
+ * Main-axis distribution. Accepts Tailwind shortcuts (`between`) and CSS/Flutter
924
+ * names (`space-between` / `spaceBetween`).
925
+ */
926
+ justifyContent(justify: "start" | "center" | "end" | "between" | "around" | "evenly" | "space-between" | "space-around" | "space-evenly" | "spaceBetween" | "spaceAround" | "spaceEvenly"): this;
927
+ /** True when flexDirection is column / column-reverse (default is row). */
928
+ protected isVerticalFlex(): boolean;
929
+ /**
930
+ * Both screen axes. `.align(Align.center)` and `.align('center')` do the same.
931
+ * `between` packs the main axis and starts the cross axis.
932
+ */
933
+ align(alignment: AlignAxis): this;
934
+ /**
935
+ * Horizontal (screen X) alignment. Same meaning on Row and Column:
936
+ * left / center / right of the container — not “main axis”.
937
+ */
938
+ alignX(alignment: AlignAxis): this;
939
+ /**
940
+ * Vertical (screen Y) alignment. Same meaning on Row and Column:
941
+ * top / center / bottom of the container — not “cross axis”.
942
+ */
943
+ alignY(alignment: AlignAxis): this;
944
+ protected applyMainAlign(alignment: AlignAxis | string): this;
945
+ protected applyCrossAlign(alignment: AlignAxis | string): this;
946
+ flex(value?: number | string): this;
947
+ grid(): this;
948
+ inlineFlex(): this;
949
+ inlineGrid(): this;
950
+ block(): this;
951
+ inlineBlock(): this;
952
+ hidden(): this;
953
+ center(): this;
954
+ /** Center on the horizontal screen axis (uses `.alignX('center')`). */
955
+ centerX(): this;
956
+ /** Center on the vertical screen axis (uses `.alignY('center')`). */
957
+ centerY(): this;
958
+ spaceBetween(): this;
959
+ spaceAround(): this;
960
+ spaceEvenly(): this;
961
+ fill(): this;
962
+ fillWidth(): this;
963
+ fillHeight(): this;
964
+ square(size: number | string): this;
965
+ circle(): this;
966
+ opacity(value: number): this;
967
+ p(value: number | string): this;
968
+ px(value: number | string): this;
969
+ py(value: number | string): this;
970
+ paddingX(value: number | string): this;
971
+ paddingY(value: number | string): this;
972
+ m(value: number | string): this;
973
+ mx(value: number | string): this;
974
+ my(value: number | string): this;
975
+ marginX(value: number | string): this;
976
+ marginY(value: number | string): this;
977
+ bg(color: string | Colors): this;
978
+ text(color: string | Colors): this;
979
+ color(value: string | Colors): this;
980
+ private resolveSemanticColor;
981
+ shadow(config?: ShadowConfig): this;
982
+ /**
983
+ * Breakpoint styles compiled to CSS `@media` (same engine as `.md()`).
984
+ * Tiers stay mutually exclusive: mobile `<768`, tablet `768–1023`, desktop `≥1024`.
985
+ * No `window.innerWidth` — hydrate-safe.
986
+ */
987
+ responsive(styles: ResponsiveStyles): this;
988
+ /**
989
+ * CSS `@media` (min-width or a raw query). Compiles to a class — no resize JS.
990
+ *
991
+ * @example Box().padding(8).media('md', { padding: 16 }).media('(prefers-color-scheme: dark)', { backgroundColor: '#111' })
992
+ */
993
+ media(query: BreakpointKey | string, styles: React$1.CSSProperties): this;
994
+ private registerMediaStyles;
995
+ sm(styles: React$1.CSSProperties): this;
996
+ md(styles: React$1.CSSProperties): this;
997
+ lg(styles: React$1.CSSProperties): this;
998
+ xl(styles: React$1.CSSProperties): this;
999
+ rounded(value: string | number): this;
1000
+ borderRadius(value: string | number): this;
1001
+ borderColor(value: string): this;
1002
+ /**
1003
+ * A passed size is a lock: `min-*` plus `flex-shrink: 0`, so a flex parent
1004
+ * (the Scaffold body) cannot divide the viewport across these children.
1005
+ * `400`, `'320px'`, `Size.full`, and `Space.md` all count. `flex(1)` afterwards
1006
+ * opts back into sharing space.
1007
+ *
1008
+ * Percentages / `auto` do not lock `min-*` — `minWidth: 100%` on a flex
1009
+ * child fights clamping and lets long text blow past the ZStack box.
1010
+ */
1011
+ private lockAxis;
1012
+ width(value: string | number): this;
1013
+ paint(property: string, value: string): this;
1014
+ height(value: string | number): this;
1015
+ gap(value: string | number): this;
1016
+ clean(): this;
1017
+ borderInput(color?: string, focusColor?: string): this;
1018
+ weight(value: string | number): this;
1019
+ onClick(handler: (event: React$1.MouseEvent<any>) => void): this;
1020
+ state<T>(key: string, initialValue: T): this;
1021
+ getState<T>(key: string): T | undefined;
1022
+ setState<T>(key: string, value: T): this;
1023
+ provide<T>(key: string, value: T): this;
1024
+ consume<T>(key: string): T | undefined;
1025
+ observer(options?: string | number | {
1026
+ key?: string | number;
1027
+ }): this;
1028
+ observe<T>(observable: Observable<T>): this;
1029
+ bindSignal<T>(signal: BindableSignal<T>): this;
1030
+ /**
1031
+ * @internal Wire a direct `method(signal.value)` to this node.
1032
+ * Does not claim reads that happen later in a children function.
1033
+ */
1034
+ adoptWire(signals: Subscribable<unknown>[], replay: () => void): void;
1035
+ /** @internal */
1036
+ runReplays(): void;
1037
+ translateX(value: Signal<number> | number): this;
1038
+ translateY(value: Signal<number> | number): this;
1039
+ scale(value: Signal<number> | number): this;
1040
+ /** SwiftUI `scaleEffect` — alias of {@link scale}. */
1041
+ scaleEffect(value: Signal<number> | number): this;
1042
+ rotate(degrees: Signal<number> | number): this;
1043
+ /** SwiftUI `rotationEffect` — alias of {@link rotate} (degrees). */
1044
+ rotationEffect(degrees: Signal<number> | number): this;
1045
+ /**
1046
+ * SwiftUI `.allowsHitTesting` — when `false`, this view and descendants
1047
+ * ignore pointer hits (`pointer-events: none`).
1048
+ */
1049
+ allowsHitTesting(value?: boolean): this;
1050
+ /**
1051
+ * SwiftUI scroll target id — used by {@link ScrollViewReader} `.scrollTo(id)`.
1052
+ * Sets `data-scroll-id` on the host.
1053
+ */
1054
+ scrollTarget(id: string): this;
1055
+ /**
1056
+ * SwiftUI: taps on *containers* (ZStack / Column / …) only hit drawn content
1057
+ * unless `.contentShape(Rectangle())` is set. We default that shape when the
1058
+ * first gesture is attached and the caller did not set one — same as the
1059
+ * usual SwiftUI fix, without forcing it on chrome-only views.
1060
+ */
1061
+ protected ensureGestureContentShape(): void;
1062
+ /**
1063
+ * SwiftUI `.gesture` — attach Tap / LongPress / Drag / Magnify / Rotate / …
1064
+ * Chainable: each call wraps the previous (outermost = last).
1065
+ */
1066
+ gesture(gesture: GestureBuilder): this;
1067
+ /** SwiftUI `.simultaneousGesture` — runs alongside other gestures (no steal). */
1068
+ simultaneousGesture(gesture: GestureBuilder): this;
1069
+ /** SwiftUI `.highPriorityGesture` — recognized before the view's own gestures. */
1070
+ highPriorityGesture(gesture: GestureBuilder): this;
1071
+ /**
1072
+ * Sugar for {@link TapGesture}`.onEnd(handler)`.
1073
+ * Note: `Button` / `List` / `ListTile` keep domain-specific `.onPress`.
1074
+ */
1075
+ onPress(handler: () => void): this;
1076
+ /** Flutter-style alias of {@link onPress}. */
1077
+ onTap(handler: () => void): this;
1078
+ /**
1079
+ * SwiftUI `onTapGesture(count:perform:)` — default count 1.
1080
+ * Pass a location callback for SpatialTap behavior.
1081
+ */
1082
+ onTapGesture(countOrHandler: number | ((location?: TapLocation) => void) | (() => void), handler?: ((location?: TapLocation) => void) | (() => void)): this;
1083
+ /**
1084
+ * SwiftUI `onLongPressGesture(minimumDuration:perform:onPressingChanged:)`.
1085
+ */
1086
+ onLongPressGesture(handlerOrOpts: (() => void) | {
1087
+ minimumDuration?: number;
1088
+ maximumDistance?: number;
1089
+ perform: () => void;
1090
+ onPressingChanged?: (pressing: boolean) => void;
1091
+ }, onPressingChanged?: (pressing: boolean) => void): this;
1092
+ animation(config: Partial<AnimationOptions>): this;
1093
+ protected hasStateManagement(): boolean;
1094
+ className(className: string): this;
1095
+ classNames(classNames: string[]): this;
1096
+ css(styles: React$1.CSSProperties): this;
1097
+ style(style: React$1.CSSProperties): this;
1098
+ props(props: Record<string, any>): this;
1099
+ protected _transitionDuration: number;
1100
+ protected _transitionEasing: string;
1101
+ protected _transitionDelay: number;
1102
+ protected _transitionProperties: string[];
1103
+ /**
1104
+ * Apply CSS transition
1105
+ *
1106
+ * Overload 1: String syntax
1107
+ * Example: .transition('all 0.2s ease-in-out')
1108
+ *
1109
+ * Overload 2: Shorthand with parameters
1110
+ * Example: .transition('all', 200, 'ease-out')
1111
+ * Example: .transition('all', 200, 'ease-out', 50)
1112
+ */
1113
+ transition(value: string): this;
1114
+ transition(properties: string | string[], duration: number, easing?: string, delay?: number): this;
1115
+ /**
1116
+ * Set transition duration in milliseconds
1117
+ * Example: .duration(200) → 200ms
1118
+ */
1119
+ duration(ms: number): this;
1120
+ /**
1121
+ * Set transition easing function
1122
+ * Example: .easing('ease-in-out')
1123
+ */
1124
+ easing(value: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "spring" | string): this;
1125
+ /** Alias of `.easing()`. `'spring'` becomes CSS `linear()`. */
1126
+ ease(value: string): this;
1127
+ /**
1128
+ * Set transition delay in milliseconds
1129
+ * Example: .delay(100) → 100ms delay
1130
+ */
1131
+ delay(ms: number): this;
1132
+ /**
1133
+ * Set which properties to transition
1134
+ * Example: .properties(['color', 'transform'])
1135
+ */
1136
+ properties(props: string[]): this;
1137
+ /**
1138
+ * Apply the built transition to the element
1139
+ */
1140
+ protected _applyTransition(): void;
1141
+ private replaceTransitionClass;
1142
+ /**
1143
+ * CSS enter/exit preset. Compiles to `@keyframes` — no rAF.
1144
+ * @example Box().animate('fadeIn').duration(300).ease('spring')
1145
+ */
1146
+ animate(preset: MotionPreset | string, options?: {
1147
+ duration?: number;
1148
+ ease?: string;
1149
+ delay?: number;
1150
+ from?: number | string;
1151
+ stiffness?: number;
1152
+ damping?: number;
1153
+ mass?: number;
1154
+ }): this;
1155
+ animate(custom: CustomMotion): this;
1156
+ /** CSS `linear()` spring. Works on `.animate()` and `.transition()` / `.hover()`. */
1157
+ spring(options?: SpringOptions): this;
1158
+ reducedMotion(mode?: "reduce" | "never"): this;
1159
+ press(callback?: (builder: PseudoStateBuilder) => void | PseudoStateBuilder): this;
1160
+ /**
1161
+ * Shortcut: `.hover(h => h.effect(name))`.
1162
+ * Named interaction effect on `:hover` (forward, float, grow, nudge, …).
1163
+ */
1164
+ hoverEffect(name: string): this;
1165
+ /**
1166
+ * Shortcut: `.press(p => p.effect(name))` (maps to `:active`).
1167
+ */
1168
+ pressEffect(name: string): this;
1169
+ /**
1170
+ * Shortcut: `.focus(f => f.effect(name))`.
1171
+ */
1172
+ focusEffect(name: string): this;
1173
+ /**
1174
+ * Shortcut: `.active(a => a.effect(name))`.
1175
+ */
1176
+ activeEffect(name: string): this;
1177
+ /**
1178
+ * Shortcut: `.groupHover(h => h.effect(name))`.
1179
+ */
1180
+ groupHoverEffect(name: string): this;
1181
+ focusVisible(): PseudoStateBuilder;
1182
+ focusVisible(callback: PseudoStateFn): this;
1183
+ stagger(ms: number): this;
1184
+ /** Scroll-reveal: IntersectionObserver toggles `.fibo-inview`. */
1185
+ reveal(preset?: string | {
1186
+ preset?: string;
1187
+ once?: boolean;
1188
+ rootMargin?: string;
1189
+ threshold?: number;
1190
+ }, options?: {
1191
+ once?: boolean;
1192
+ rootMargin?: string;
1193
+ threshold?: number;
1194
+ }): this;
1195
+ /** Alias of `.reveal()` for scroll-triggered presets. */
1196
+ onScroll(preset?: string): this;
1197
+ /** CSS `animation-timeline: view()` / `scroll()`; IntersectionObserver reveal is the fallback. */
1198
+ scrollTimeline(kind?: "view" | "scroll"): this;
1199
+ scrollProgress(): this;
1200
+ smoothScroll(): this;
1201
+ scrollSnap(axis?: "x" | "y" | "both"): this;
1202
+ scrollSnapAlign(align?: "start" | "center" | "end"): this;
1203
+ sticky(top?: number | string | boolean): this;
1204
+ /**
1205
+ * Publish `--fibo-sticky-offset` on `:root` so `.anchor()` / `html` scroll-padding
1206
+ * clear this bar. Header uses the real bar height.
1207
+ */
1208
+ protected publishStickyOffset(value: number | string): void;
1209
+ viewTransition(name: string): this;
1210
+ /** Default `:focus-visible` ring. Pass a callback to customize. */
1211
+ focusRing(color?: string): this;
1212
+ protected ensureInteractiveTransition(): void;
1213
+ /**
1214
+ * Prepare resting styles + transition so pseudo-state longhands (bg/border/transform)
1215
+ * interpolate instead of snapping. Safe to call repeatedly from PseudoStateBuilder.
1216
+ * @internal
1217
+ */
1218
+ prepareSmoothInteraction(properties: string[]): void;
1219
+ /** @internal Convert inline background/border shorthands → longhands. */
1220
+ promoteSurfaceLonghands(): void;
1221
+ /** @internal Stamp translate3d(0,0,0) when no resting transform exists. */
1222
+ ensureRestTransform(): void;
1223
+ /**
1224
+ * Ensure the base element transitions the properties an interaction effect needs.
1225
+ * Expands an auto-managed transition; no-ops if the caller set `.transition(...)`
1226
+ * explicitly or a motion animation class is present.
1227
+ * @internal Used by PseudoStateBuilder.effect() and hover/press shortcuts.
1228
+ */
1229
+ ensureEffectTransition(properties: string[]): void;
1230
+ /**
1231
+ * Apply a theme to this node and descendants (CSS vars inherit).
1232
+ * Fluent: `.theme("noir")` | `.theme(noirTheme)` | `.theme(extendTheme(webTheme, {…}))`.
1233
+ * SSR-safe: class + inline vars on first paint (no useEffect).
1234
+ */
1235
+ theme(input: ThemeInput): this;
1236
+ /** Prefer dark/light system chrome for native controls under this subtree. */
1237
+ colorScheme(scheme: "light" | "dark" | "light dark"): this;
1238
+ hover(): PseudoStateBuilder;
1239
+ hover(callback: PseudoStateFn): this;
1240
+ /**
1241
+ * Paint for a `When` state. Hover / focus / active / visited / disabled
1242
+ * write a CSS pseudo on this node. `on` / `off` are for Checkbox and Switch.
1243
+ *
1244
+ * ```ts
1245
+ * Row().when(When.hover, (s) => s.bg('#c8ff00'))
1246
+ * ```
1247
+ */
1248
+ when(state: When, style: WhenStyle): this;
1249
+ focus(): PseudoStateBuilder;
1250
+ focus(callback: PseudoStateFn): this;
1251
+ active(): PseudoStateBuilder;
1252
+ active(callback: PseudoStateFn): this;
1253
+ visited(): PseudoStateBuilder;
1254
+ visited(callback: PseudoStateFn): this;
1255
+ disabledState(): PseudoStateBuilder;
1256
+ disabledState(callback: PseudoStateFn): this;
1257
+ focusWithin(): PseudoStateBuilder;
1258
+ focusWithin(callback: PseudoStateFn): this;
1259
+ firstChild(): PseudoStateBuilder;
1260
+ firstChild(callback: PseudoStateFn): this;
1261
+ lastChild(): PseudoStateBuilder;
1262
+ lastChild(callback: PseudoStateFn): this;
1263
+ groupHover(): PseudoStateBuilder;
1264
+ groupHover(callback: PseudoStateFn): this;
1265
+ groupFocus(): PseudoStateBuilder;
1266
+ groupFocus(callback: PseudoStateFn): this;
1267
+ groupActive(): PseudoStateBuilder;
1268
+ groupActive(callback: PseudoStateFn): this;
1269
+ groupFocusWithin(): PseudoStateBuilder;
1270
+ groupFocusWithin(callback: PseudoStateFn): this;
1271
+ group(): this;
1272
+ protected _childFunction?: () => FiboChild | FiboChild[];
1273
+ children(children: FiboChildren): this;
1274
+ protected getClassName(): string;
1275
+ protected getStyle(): React$1.CSSProperties;
1276
+ protected processChildren(): React$1.ReactNode[];
1277
+ protected getChildFunction(): (() => FiboChild | FiboChild[]) | undefined;
1278
+ /**
1279
+ * @deprecated Builders are React elements. Returning or nesting the builder is enough.
1280
+ * `.build()` still assembles the host tree for older call sites.
1281
+ */
1282
+ abstract build(): React$1.ReactElement;
1283
+ }
1284
+ type KnownKeys<T> = {
1285
+ [K in keyof T]: string extends K ? never : number extends K ? never : K;
1286
+ } extends {
1287
+ [_ in keyof T]: infer U;
1288
+ } ? U : never;
1289
+ type StyleBuilder<T> = T & LogicalAxes & {
1290
+ [K in KnownKeys<React$1.CSSProperties>]-?: (value: React$1.CSSProperties[K]) => StyleBuilder<T>;
1291
+ } & React$1.ReactElement;
1292
+ declare class CenterBuilder extends FiboBuilder {
1293
+ children(children: FiboChildren): this;
1294
+ props(value: Record<string, any>): this;
1295
+ build(): React$1.ReactElement;
1296
+ }
1297
+ export declare const Center: () => StyleBuilder<CenterBuilder>;
1298
+ declare class ColumnBuilder extends FiboBuilder {
1299
+ private _mainAxisAlignment;
1300
+ private _crossAxisAlignment;
1301
+ private _spacing?;
1302
+ private _size?;
1303
+ children(children: FiboChildren): this;
1304
+ props(value: Record<string, any>): this;
1305
+ mainAxisAlignment(alignment: MainAxisAlignment): this;
1306
+ crossAxisAlignment(alignment: CrossAxisAlignment): this;
1307
+ /** Horizontal screen axis → cross axis on a Column. */
1308
+ alignX(alignment: AlignAxis): this;
1309
+ /** Vertical screen axis → main axis on a Column. */
1310
+ alignY(alignment: AlignAxis): this;
1311
+ spacing(value: string | number): this;
1312
+ size(size: "small" | "medium" | "large"): this;
1313
+ build(): React$1.ReactElement;
1314
+ }
1315
+ export declare const Column: () => StyleBuilder<ColumnBuilder>;
1316
+ declare class ContainerBuilder extends FiboBuilder {
1317
+ private _userPad;
1318
+ children(children: FiboChildren): this;
1319
+ props(value: Record<string, any>): this;
1320
+ padding(value: string | number): this;
1321
+ padding(edges: EdgeSet, value: string | number): this;
1322
+ padding(insets: EdgeInsetsValue): this;
1323
+ paddingHorizontal(value: string | number): this;
1324
+ paddingVertical(value: string | number): this;
1325
+ paddingLeft(value: string | number): this;
1326
+ paddingRight(value: string | number): this;
1327
+ paddingTop(value: string | number): this;
1328
+ paddingBottom(value: string | number): this;
1329
+ build(): React$1.ReactElement;
1330
+ }
1331
+ export declare const Container: () => StyleBuilder<ContainerBuilder>;
1332
+ declare class RowBuilder extends FiboBuilder {
1333
+ private _mainAxisAlignment;
1334
+ private _crossAxisAlignment;
1335
+ children(children: FiboChildren): this;
1336
+ props(value: Record<string, any>): this;
1337
+ mainAxisAlignment(alignment: MainAxisAlignment): this;
1338
+ crossAxisAlignment(alignment: CrossAxisAlignment): this;
1339
+ /** Horizontal screen axis → main axis on a Row. */
1340
+ alignX(alignment: AlignAxis): this;
1341
+ /** Vertical screen axis → cross axis on a Row. */
1342
+ alignY(alignment: AlignAxis): this;
1343
+ spacing(value: string | number): this;
1344
+ items(children: React$1.ReactElement[]): this;
1345
+ build(): React$1.ReactElement;
1346
+ }
1347
+ export declare const Row: () => StyleBuilder<RowBuilder>;
1348
+ declare class SpacerBuilder extends FiboBuilder {
1349
+ private _height?;
1350
+ private _width?;
1351
+ private _grow?;
1352
+ private _expand?;
1353
+ height(value: string | number): this;
1354
+ width(value: string | number): this;
1355
+ vertical(): this;
1356
+ horizontal(): this;
1357
+ /** Grow factor inside a Row or Column. Does not turn the spacer into a flex container. */
1358
+ flex(value?: number | string): this;
1359
+ build(): React$1.ReactElement;
1360
+ }
1361
+ export declare const Spacer: () => StyleBuilder<SpacerBuilder>;
1362
+ type FabAt = "start" | "center" | "end" | "startTop" | "centerTop" | "endTop" | "startDock" | "centerDock" | "endDock";
1363
+ interface LayoutBarConfig {
1364
+ fixed?: boolean;
1365
+ children: FiboChildren;
1366
+ }
1367
+ interface ScaffoldStructure {
1368
+ header?: {
1369
+ position?: "static" | "sticky" | "fixed";
1370
+ height?: string | number;
1371
+ visible?: boolean;
1372
+ };
1373
+ footer?: {
1374
+ position?: "static" | "sticky" | "fixed";
1375
+ height?: string | number;
1376
+ visible?: boolean;
1377
+ };
1378
+ sidebarLeft?: {
1379
+ behavior?: "fixed" | "scroll";
1380
+ mode?: "side" | "over";
1381
+ width?: string | number;
1382
+ visible?: boolean;
1383
+ fullHeight?: boolean;
1384
+ };
1385
+ sidebarRight?: {
1386
+ behavior?: "fixed" | "scroll";
1387
+ mode?: "side" | "over";
1388
+ width?: string | number;
1389
+ visible?: boolean;
1390
+ fullHeight?: boolean;
1391
+ };
1392
+ }
1393
+ declare class ScaffoldBuilder extends FiboBuilder {
1394
+ private _locale?;
1395
+ private _customProviders;
1396
+ private _structure;
1397
+ private _headerBar?;
1398
+ private _footerBar?;
1399
+ private _sideBarLeft?;
1400
+ private _sideBarRight?;
1401
+ private _drawer?;
1402
+ private _endDrawer?;
1403
+ private _drawerWidth;
1404
+ private _fab?;
1405
+ private _fabAt;
1406
+ private _bottomSheet?;
1407
+ private _footerButtons?;
1408
+ private _extendBody;
1409
+ private _extendBehindHeader;
1410
+ private _avoidKeyboard;
1411
+ private _onDrawer?;
1412
+ children(children: FiboChildren): this;
1413
+ props(value: Record<string, any>): this;
1414
+ locale(locale: string): this;
1415
+ providers(providers: Record<string, any>): this;
1416
+ provider(key: string, value: any): this;
1417
+ structure(config: ScaffoldStructure): this;
1418
+ headerBar(config: FiboChild | LayoutBarConfig): this;
1419
+ /** Flutter `Scaffold.appBar`. Same slot as `.headerBar()`. */
1420
+ appBar(config: FiboChild | LayoutBarConfig): this;
1421
+ /**
1422
+ * SwiftUI `.navigationTitle` — fills the header bar via existing `Header` chrome.
1423
+ * Does **not** add a sixth title component; if `.headerBar()` / `.appBar()` is already
1424
+ * set, this is a no-op (explicit chrome wins).
1425
+ */
1426
+ navigationTitle(title: string | FiboChild): this;
1427
+ footerBar(config: FiboChild | LayoutBarConfig): this;
1428
+ sideBarLeft(config: FiboChild | LayoutBarConfig): this;
1429
+ sideBarRight(config: FiboChild | LayoutBarConfig): this;
1430
+ /** Flutter drawer. Starts closed. Open it with `useScaffold().openDrawer()`. */
1431
+ drawer(child: FiboChild): this;
1432
+ /** Flutter endDrawer. */
1433
+ endDrawer(child: FiboChild): this;
1434
+ drawerWidth(px: number): this;
1435
+ /** Flutter floatingActionButton. */
1436
+ fab(child: FiboChild): this;
1437
+ /** Where the button sits. Dock locations overlap the footer. */
1438
+ fabAt(location: FabAt): this;
1439
+ /** Flutter bottomSheet. Hidden until `useScaffold().showSheet()`. */
1440
+ bottomSheet(child: FiboChild): this;
1441
+ /** Flutter persistentFooterButtons. */
1442
+ footerButtons(children: FiboChildren): this;
1443
+ /** Body draws under the footer. */
1444
+ extendBody(on?: boolean): this;
1445
+ /** Body draws under the header. */
1446
+ extendBehindHeader(on?: boolean): this;
1447
+ /** Lift the page above the keyboard. On by default. */
1448
+ avoidKeyboard(on?: boolean): this;
1449
+ onDrawer(handler: (side: "start" | "end", open: boolean) => void): this;
1450
+ private _bindBar;
1451
+ private _normalizeBar;
1452
+ private _isLayoutBarConfig;
1453
+ build(): React$1.ReactElement;
1454
+ }
1455
+ export declare const Scaffold: () => StyleBuilder<ScaffoldBuilder>;
1456
+ declare class HeaderBuilder extends FiboBuilder {
1457
+ private _height;
1458
+ private _sticky;
1459
+ private _stickyTop;
1460
+ private _stickyStamp;
1461
+ private _leading?;
1462
+ private _trailing?;
1463
+ private _title?;
1464
+ private static unstickSeq;
1465
+ children(children: FiboChildren): this;
1466
+ props(value: Record<string, any>): this;
1467
+ leading(node: FiboChild): this;
1468
+ trailing(node: FiboChild): this;
1469
+ title(value: string | FiboChild): this;
1470
+ height(height: number | string): this;
1471
+ sticky(enable?: boolean | number | string): this;
1472
+ private dropStickyStamp;
1473
+ private syncStickyOffset;
1474
+ build(): React$1.ReactElement;
1475
+ }
1476
+ export declare const Header: () => StyleBuilder<HeaderBuilder>;
1477
+ declare class SidebarBuilder extends FiboBuilder {
1478
+ private _width;
1479
+ private _collapsed;
1480
+ width(width: number | string): this;
1481
+ collapsible(collapsed?: boolean): this;
1482
+ children(children: FiboChildren): this;
1483
+ props(value: Record<string, any>): this;
1484
+ build(): React$1.ReactElement;
1485
+ }
1486
+ export declare const Sidebar: () => StyleBuilder<SidebarBuilder>;
1487
+ declare class DashboardLayoutBuilder extends FiboBuilder {
1488
+ private _sidebar?;
1489
+ private _header?;
1490
+ children(children: FiboChildren): this;
1491
+ props(value: Record<string, any>): this;
1492
+ sidebar(component: FiboChild): this;
1493
+ header(component: FiboChild): this;
1494
+ build(): React$1.ReactElement;
1495
+ }
1496
+ export declare const DashboardLayout: () => StyleBuilder<DashboardLayoutBuilder>;
1497
+ type ZStackAlignment = StackAlign | keyof typeof StackAlign;
1498
+ type ZStackFit = "content" | "expand";
1499
+ declare class ZStackBuilder extends FiboBuilder {
1500
+ private _alignment;
1501
+ private _fit;
1502
+ /** Copied from base child’s fixed frame, if any. */
1503
+ private _baseFixedFrame?;
1504
+ children(children: FiboChildren): this;
1505
+ props(value: Record<string, any>): this;
1506
+ alignment(align: ZStackAlignment): this;
1507
+ /**
1508
+ * How the stack sizes itself.
1509
+ * - `content` (default): hug the base child — SwiftUI ideal size / `StackFit.loose`
1510
+ * - `expand`: fill the parent — `StackFit.expand`
1511
+ *
1512
+ * `.hug()` still forces content; explicit `.width('100%')` still fills.
1513
+ */
1514
+ fit(value: ZStackFit): this;
1515
+ build(): React$1.ReactElement;
1516
+ }
1517
+ export declare const ZStack: () => StyleBuilder<ZStackBuilder>;
1518
+ declare class LineBuilder extends FiboBuilder {
1519
+ private _sizeHeight?;
1520
+ children(children: FiboChildren): this;
1521
+ props(value: Record<string, any>): this;
1522
+ sizeHeight(value: string): this;
1523
+ /** Separator axis. `vertical` paints a 1px column rule. */
1524
+ direction(value: "horizontal" | "vertical"): this;
1525
+ build(): React$1.ReactElement;
1526
+ }
1527
+ export declare const Line: () => StyleBuilder<LineBuilder>;
1528
+ /** Flutter-style handle for a mounted ScrollView — no document.querySelector. */
1529
+ export declare class ScrollController {
1530
+ private _node;
1531
+ /** @internal Attached by ScrollView on mount. */
1532
+ attach(node: HTMLElement | null): void;
1533
+ get node(): HTMLElement | null;
1534
+ /** Prefer the inner strip so wrapping for overflow does not count as a slide. */
1535
+ private itemHost;
1536
+ private alive;
1537
+ scrollBy(options: ScrollToOptions): void;
1538
+ scrollTo(options: ScrollToOptions): void;
1539
+ /** Prefer overflow styles (direction) over whether content currently overflows. */
1540
+ private scrollAxis;
1541
+ /**
1542
+ * Carousel step: scroll by the first child's outer width (+ gap).
1543
+ * Prefer this over measuring in app code.
1544
+ */
1545
+ scrollByChild(dir?: -1 | 1, gap?: number): void;
1546
+ scrollToChild(index: number, gap?: number): void;
1547
+ }
1548
+ /** Proxy passed to `ScrollViewReader` builder — SwiftUI `ScrollViewProxy`. */
1549
+ export type ScrollViewProxy = {
1550
+ /** Scroll the nearest ancestor scroller so `[data-scroll-id=id]` is visible. */
1551
+ scrollTo: (id: string, options?: ScrollIntoViewOptions) => void;
1552
+ };
1553
+ declare class ScrollViewReaderBuilder extends FiboBuilder {
1554
+ private _builder?;
1555
+ builder(fn: (proxy: ScrollViewProxy) => unknown): this;
1556
+ build(): React$1.ReactElement;
1557
+ }
1558
+ /**
1559
+ * SwiftUI `ScrollViewReader` — wrap a ScrollView; call `proxy.scrollTo(id)`
1560
+ * for children marked with `.scrollTarget(id)`.
1561
+ *
1562
+ * ```ts
1563
+ * ScrollViewReader().builder((proxy) =>
1564
+ * Column().children(
1565
+ * Button('Go').onPress(() => proxy.scrollTo('row-3')),
1566
+ * ScrollView().children(
1567
+ * Text('A').scrollTarget('row-1'),
1568
+ * Text('C').scrollTarget('row-3'),
1569
+ * )
1570
+ * )
1571
+ * )
1572
+ * ```
1573
+ */
1574
+ export declare const ScrollViewReader: () => StyleBuilder<ScrollViewReaderBuilder>;
1575
+ type ScrollDirection = "vertical" | "horizontal" | "both";
1576
+ type ScrollbarVisibility = "hidden" | "visible" | "auto";
1577
+ type ScrollAnchor = "start" | "center" | "end";
1578
+ declare class ScrollViewBuilder extends FiboBuilder {
1579
+ private _direction;
1580
+ private _scrollbar;
1581
+ private _controller?;
1582
+ private _anchor?;
1583
+ private _refresh?;
1584
+ private _scrollTargetLayout;
1585
+ private _scrollPosition?;
1586
+ children(children: FiboChildren): this;
1587
+ props(value: Record<string, any>): this;
1588
+ direction(direction: ScrollDirection): this;
1589
+ horizontal(): this;
1590
+ vertical(): this;
1591
+ scrollbar(visibility: ScrollbarVisibility): this;
1592
+ /** Attach a ScrollController for programmatic scroll (carousel prev/next). */
1593
+ controller(controller: ScrollController): this;
1594
+ scrollAnchor(anchor: ScrollAnchor): this;
1595
+ refreshable(handler: () => void): this;
1596
+ /**
1597
+ * SwiftUI `scrollTargetLayout` — children participate as scroll targets
1598
+ * (snap + `data-scroll-target-layout`).
1599
+ */
1600
+ scrollTargetLayout(enabled?: boolean): this;
1601
+ /**
1602
+ * SwiftUI `scrollPosition(id:)` — initial / programmatic target id
1603
+ * (`data-scroll-position`). Pair with `.scrollTarget(id)` on children.
1604
+ */
1605
+ scrollPosition(id: string): this;
1606
+ /**
1607
+ * Native scroll listener on the overflow host.
1608
+ * String presets still alias `.reveal()` from FiboBuilder.
1609
+ */
1610
+ onScroll(preset?: string): this;
1611
+ onScroll(handler: (event: React$1.UIEvent<HTMLDivElement>) => void): this;
1612
+ build(): React$1.ReactElement;
1613
+ }
1614
+ export declare const ScrollView: () => StyleBuilder<ScrollViewBuilder>;
1615
+ declare class VirtualColumnBuilder extends FiboBuilder {
1616
+ private _itemHeight?;
1617
+ private _estimatedItemHeight?;
1618
+ private _measureItems;
1619
+ private _overscan;
1620
+ private _containerHeight;
1621
+ itemHeight(height: number): this;
1622
+ estimatedItemHeight(height: number): this;
1623
+ measureItems(measure?: boolean): this;
1624
+ overscan(count: number): this;
1625
+ containerHeight(height: number): this;
1626
+ build(): React$1.ReactElement;
1627
+ }
1628
+ export declare const VirtualColumn: () => StyleBuilder<VirtualColumnBuilder>;
1629
+ declare class VirtualRowBuilder extends FiboBuilder {
1630
+ private _itemWidth?;
1631
+ private _estimatedItemWidth?;
1632
+ private _measureItems;
1633
+ private _overscan;
1634
+ private _containerWidth;
1635
+ itemWidth(width: number): this;
1636
+ estimatedItemWidth(width: number): this;
1637
+ measureItems(measure?: boolean): this;
1638
+ overscan(count: number): this;
1639
+ containerWidth(width: number): this;
1640
+ build(): React$1.ReactElement;
1641
+ }
1642
+ export declare const VirtualRow: () => StyleBuilder<VirtualRowBuilder>;
1643
+ export type LayoutSize = {
1644
+ width: number;
1645
+ height: number;
1646
+ };
1647
+ /** SwiftUI-ish safe-area insets (CSS env when available). */
1648
+ export type EdgeInsets = {
1649
+ top: number;
1650
+ bottom: number;
1651
+ leading: number;
1652
+ trailing: number;
1653
+ };
1654
+ /**
1655
+ * SwiftUI `GeometryProxy` — size + safe-area + local / global / named frames.
1656
+ */
1657
+ export type GeometryProxy = LayoutSize & {
1658
+ size: LayoutSize;
1659
+ safeAreaInsets: EdgeInsets;
1660
+ /** Frame in `local` | `global` | `CoordinateSpace.named('foo')`. */
1661
+ frame: (inSpace?: "local" | "global" | string) => {
1662
+ x: number;
1663
+ y: number;
1664
+ width: number;
1665
+ height: number;
1666
+ };
1667
+ };
1668
+ declare class LayoutBuilderBuilder extends FiboBuilder {
1669
+ private _builder?;
1670
+ private _coordinateSpace?;
1671
+ builder(fn: (proxy: GeometryProxy) => unknown): this;
1672
+ /** Publish this reader as `CoordinateSpace.named(name)`. */
1673
+ coordinateSpace(name: string): this;
1674
+ build(): React$1.ReactElement;
1675
+ }
1676
+ export declare const LayoutBuilder: () => StyleBuilder<LayoutBuilderBuilder>;
1677
+ /** SwiftUI `GeometryReader` — same as {@link LayoutBuilder}, receives {@link GeometryProxy}. */
1678
+ export declare const GeometryReader: () => StyleBuilder<LayoutBuilderBuilder>;
1679
+
1680
+ export {};