@vectoriox/iox-ui 5.88.0 → 5.90.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.
Files changed (49) hide show
  1. package/design-core/index.d.ts +523 -2
  2. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +3 -2
  3. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  4. package/fesm2022/vectoriox-iox-ui-design-core.mjs +581 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +4692 -160
  7. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +12 -1
  9. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +46 -6
  11. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui.mjs +6 -4
  13. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  14. package/generation-core/index.d.ts +1611 -10
  15. package/harness-core/index.d.ts +52 -3
  16. package/package.json +1 -1
  17. package/scene-core/index.d.ts +28 -2
  18. package/src/composite-core/slider.ts +3 -2
  19. package/src/design-core/flavor-spec.generated.ts +500 -0
  20. package/src/design-core/font-metrics.ts +105 -0
  21. package/src/design-core/public-api.ts +1 -0
  22. package/src/generation-core/ai-run.ts +11 -0
  23. package/src/generation-core/audit-site.ts +5 -0
  24. package/src/generation-core/check-layout.ts +940 -0
  25. package/src/generation-core/compose-layout.ts +907 -0
  26. package/src/generation-core/compose-site.ts +136 -5
  27. package/src/generation-core/layout-drift.ts +78 -0
  28. package/src/generation-core/layout-edits.ts +122 -0
  29. package/src/generation-core/layout-fingerprint.ts +203 -0
  30. package/src/generation-core/layout-language.ts +537 -0
  31. package/src/generation-core/layout-look.ts +57 -0
  32. package/src/generation-core/layout-photos.ts +19 -0
  33. package/src/generation-core/layout-render-check.ts +275 -0
  34. package/src/generation-core/layout-section-fallback.ts +156 -0
  35. package/src/generation-core/layout-type.ts +48 -0
  36. package/src/generation-core/layout-wire.ts +282 -0
  37. package/src/generation-core/nav-shape.ts +23 -1
  38. package/src/generation-core/photo-inventory.ts +250 -0
  39. package/src/generation-core/plan-edits.ts +25 -2
  40. package/src/generation-core/plan-wire.ts +19 -2
  41. package/src/generation-core/public-api.ts +13 -0
  42. package/src/generation-core/site-plan.model.ts +16 -0
  43. package/src/generation-core/site-spec.generated.ts +759 -2
  44. package/src/generation-core/validate-site-plan.ts +55 -1
  45. package/src/harness-core/generation-view.ts +52 -1
  46. package/src/scene-core/scroll-driver.ts +14 -2
  47. package/src/scene-core/scroll-range.ts +37 -4
  48. package/styles/iox-design.css +17 -0
  49. package/styles/iox-forms.css +4 -0
@@ -1,7 +1,8 @@
1
1
  import { FrameSequence } from '@vectoriox/iox-ui/media-core';
2
- import { DesignChoices, AnimateId, DesignTokenLike } from '@vectoriox/iox-ui/design-core';
2
+ import { DesignChoices, AnimateId, DesignTokenLike, ColorScheme, StylePreset } from '@vectoriox/iox-ui/design-core';
3
3
  import { SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
4
4
  import { ContentFieldLike } from '@vectoriox/iox-ui/composite-core';
5
+ import { ParallaxDepth } from '@vectoriox/iox-ui/scene-core';
5
6
 
6
7
  declare const SPEC_SITE_PLAN_SHAPE: {
7
8
  readonly plan: {
@@ -16,6 +17,17 @@ declare const SPEC_SITE_PLAN_SHAPE: {
16
17
  readonly globals: "globals";
17
18
  readonly "film?": "film — the owner's film as pictures (SC6b), set by the build and placed by placeFilm; never a model's";
18
19
  readonly "artDirection?": "artDirection — what every picture made for the site shares (M7): set by the generation from the business type and the look (generation-core artDirectionFor); never a model's";
20
+ readonly "direction?": "direction — what the site is built around (M8 gate 2): written with the pages, shown on the Plan step; every composed page serves it";
21
+ };
22
+ readonly direction: {
23
+ readonly idea: "string — one sentence: what this site is about and how it should feel";
24
+ readonly cliche: "string — one sentence: the website anyone would make for this business";
25
+ readonly flip: "string — one sentence: what this site does instead";
26
+ readonly rules: "string[] — three short design rules every composed page keeps";
27
+ };
28
+ readonly layoutPage: {
29
+ readonly dial: "'distinct' | 'daring' — how far the page breaks the usual layout (site.layout.vocab.dials; follows How animated, never the model's)";
30
+ readonly sections: "layoutSection[] — the page in the layout language (site.layout): 4–8 sections of layers on a 12-column grid, checked by generation-core checkLayout, stamped by composeLayout";
19
31
  };
20
32
  readonly film: {
21
33
  readonly sequence: "object — a media-core FrameSequence: where the numbered pictures live, how many, their size";
@@ -113,7 +125,9 @@ declare const SPEC_SITE_PLAN_SHAPE: {
113
125
  readonly "template?": "string — the content type a template page renders one item of";
114
126
  readonly "routeSource?": "string — the single source read by the route param (route.* binds it)";
115
127
  readonly "seo?": "pageSeo";
116
- readonly sections: "section[]";
128
+ readonly sections: "section[] — the page from patterns; a composed page keeps them as its fallback";
129
+ readonly "compose?": "boolean — the page is composed in the layout language (M8 gate 2): the home page, and at most one other page that is no per-item page; written with the pages, the layout step fills `layout`";
130
+ readonly "layout?": "layoutPage — the composed page (the layout step's, never the Pages request's): when present the page is stamped from it and `sections` is not";
117
131
  };
118
132
  readonly pageSeo: {
119
133
  readonly "title?": "string ≤ 60 — the page title in search results (absent = the page name · the business)";
@@ -4827,6 +4841,388 @@ declare const SPEC_SITE_PICTURE_WORLDS: {
4827
4841
  };
4828
4842
  };
4829
4843
  declare const SPEC_SITE_PICTURE_NEVER: readonly ["text, letters or numbers", "logos, brand names or signage", "a watermark", "a recognisable face", "borders or frames", "distorted hands or objects"];
4844
+ declare const SPEC_SITE_LAYOUT: {
4845
+ readonly vocab: {
4846
+ readonly kinds: readonly ["word", "heading", "text", "photo", "gallery", "button", "list", "number", "shape", "label", "form", "marquee"];
4847
+ readonly textKinds: readonly ["word", "heading", "text", "label", "number", "list"];
4848
+ readonly operated: readonly ["gallery", "button", "form", "marquee"];
4849
+ readonly sizes: readonly ["xs", "s", "m", "l", "xl", "xxl", "screen"];
4850
+ readonly colours: readonly ["ground", "ink", "accent", "soft", "muted"];
4851
+ readonly roles: readonly ["lead", "support", "decoration", "static"];
4852
+ readonly enters: readonly ["none", "fade", "fadeRise", "scaleIn", "clipReveal", "maskRise", "blurIn", "pop"];
4853
+ readonly sides: readonly ["bottom", "top", "start", "end"];
4854
+ readonly depths: readonly ["back", "mid", "front"];
4855
+ readonly transitions: readonly ["cut", "flood", "wipe-up", "wipe-down", "wipe-start", "wipe-end"];
4856
+ readonly eases: readonly ["out", "inOut", "drawer", "linear"];
4857
+ readonly paces: readonly ["slow", "normal", "quick"];
4858
+ readonly aligns: readonly ["start", "center", "end"];
4859
+ readonly bleeds: readonly ["none", "start", "end", "both"];
4860
+ readonly trackProps: readonly ["x", "y", "scale", "opacity", "rotate", "clip", "blur"];
4861
+ readonly photoShapes: readonly ["wide", "landscape", "square", "portrait", "tall"];
4862
+ readonly sectionKinds: readonly ["content", "inhale", "signature"];
4863
+ readonly buttonVariants: readonly ["primary", "secondary", "ghost"];
4864
+ readonly galleryEffects: readonly ["slide", "fade", "cube", "flip", "coverflow", "cards", "creative"];
4865
+ readonly formPresets: readonly ["lead", "contact", "booking", "newsletter"];
4866
+ readonly formChips: {
4867
+ readonly lead: readonly ["needs", "budget"];
4868
+ readonly booking: readonly ["guests"];
4869
+ readonly contact: readonly [];
4870
+ readonly newsletter: readonly [];
4871
+ };
4872
+ readonly formSlots: readonly ["title", "intro", "submit", "successTitle", "successText", "channel"];
4873
+ readonly flags: readonly ["scrim", "kinetic", "contain", "centered", "freeMode", "loop", "drift", "scroll", "autoplay"];
4874
+ readonly dials: readonly ["distinct", "daring"];
4875
+ readonly photoSources: readonly ["own", "stock", "box"];
4876
+ readonly factToken: "{fact:<key>}";
4877
+ };
4878
+ readonly sizePx: {
4879
+ readonly xs: 12;
4880
+ readonly s: 15;
4881
+ readonly m: 19;
4882
+ readonly l: 40;
4883
+ readonly xl: 72;
4884
+ readonly xxl: 122;
4885
+ readonly screen: 180;
4886
+ };
4887
+ readonly maxChars: {
4888
+ readonly screen: 14;
4889
+ readonly xxl: 40;
4890
+ readonly xl: 70;
4891
+ readonly l: 120;
4892
+ readonly m: 400;
4893
+ readonly s: 600;
4894
+ readonly xs: 200;
4895
+ };
4896
+ readonly limits: {
4897
+ readonly sections: readonly [4, 8];
4898
+ readonly screens: readonly [1, 5];
4899
+ readonly rows: readonly [4, 16];
4900
+ readonly hold: readonly [0, 4];
4901
+ readonly inhaleLayers: 2;
4902
+ readonly inhaleScreens: 2;
4903
+ readonly enteringPerSection: 6;
4904
+ readonly enteringSections: 0.5;
4905
+ readonly kineticWords: 7;
4906
+ readonly minScale: 0.9;
4907
+ readonly maxTextBlur: 5;
4908
+ readonly maxRotate: 8;
4909
+ readonly longTextChars: 160;
4910
+ readonly longTextColumns: 7;
4911
+ readonly maxPhotos: 14;
4912
+ readonly galleriesMin: 0;
4913
+ readonly gallerySlides: readonly [2, 8];
4914
+ readonly marqueeItems: readonly [3, 8];
4915
+ readonly marqueeChars: 24;
4916
+ readonly marquees: 1;
4917
+ readonly formChips: readonly [2, 6];
4918
+ readonly formColumns: 5;
4919
+ readonly depthLayers: 6;
4920
+ readonly depthLayersCalm: 4;
4921
+ readonly calmLooks: readonly ["quiet", "swiss"];
4922
+ readonly textFitSlack: 1.15;
4923
+ readonly advance: {
4924
+ readonly latin: 0.55;
4925
+ readonly hebrew: 0.42;
4926
+ };
4927
+ readonly daring: {
4928
+ readonly bleeds: 2;
4929
+ readonly screenWords: 1;
4930
+ readonly wordsOnPhoto: 1;
4931
+ readonly holds: 2;
4932
+ };
4933
+ readonly distinct: {
4934
+ readonly holdsMax: 1;
4935
+ };
4936
+ readonly composedPages: 2;
4937
+ readonly repairs: 1;
4938
+ };
4939
+ readonly sameness: {
4940
+ readonly sequence: 0.8;
4941
+ readonly memory: 12;
4942
+ };
4943
+ readonly sequenceTokens: readonly ["inhale", "sideways", "held-words", "held-reel", "held", "photo-ground", "gallery", "split", "composition"];
4944
+ readonly signatures: readonly [{
4945
+ readonly id: "words-lit";
4946
+ readonly label: "words lit one by one";
4947
+ readonly how: "a kinetic word or heading of at most seven words in a held section";
4948
+ }, {
4949
+ readonly id: "photo-unveiled";
4950
+ readonly label: "a photo unveiled";
4951
+ readonly how: "a clip track opening a photo from a slit to the full screen";
4952
+ }, {
4953
+ readonly id: "zoom-through";
4954
+ readonly label: "a zoom through a photo";
4955
+ readonly how: "a scale track carrying the eye through a photo into the next section";
4956
+ }, {
4957
+ readonly id: "scroll-reel";
4958
+ readonly label: "a reel turned by the scroll";
4959
+ readonly how: "a gallery with \"scroll\" in a held section";
4960
+ }, {
4961
+ readonly id: "pictures-stacking";
4962
+ readonly label: "pictures stacking";
4963
+ readonly how: "y tracks laying photos one on another";
4964
+ }, {
4965
+ readonly id: "halves-apart";
4966
+ readonly label: "halves sliding apart";
4967
+ readonly how: "x tracks parting two halves to reveal a word";
4968
+ }, {
4969
+ readonly id: "sideways-walk";
4970
+ readonly label: "a sideways walk";
4971
+ readonly how: "a held section 2–4 screens wide carried sideways by the scroll";
4972
+ }, {
4973
+ readonly id: "object-turning";
4974
+ readonly label: "an object turning";
4975
+ readonly how: "rotate + opacity tracks while its words change";
4976
+ }, {
4977
+ readonly id: "held-screen";
4978
+ readonly label: "a held screen";
4979
+ readonly how: "a held section with none of the above (a fallback, never the aim)";
4980
+ }];
4981
+ readonly daringLevels: readonly ["lively", "expressive"];
4982
+ readonly looks: readonly [{
4983
+ readonly id: "quiet";
4984
+ readonly name: "Quiet";
4985
+ readonly after: "MUJI / Kenya Hara";
4986
+ readonly feel: "Emptiness as fullness: a small object in a large field, near-silence, warm paper.";
4987
+ readonly empty: 0.6;
4988
+ readonly contrast: readonly [3, 2];
4989
+ readonly enters: readonly ["fadeRise", "blurIn"];
4990
+ readonly pace: "slow";
4991
+ readonly ease: "out";
4992
+ readonly depthScale: 0.6;
4993
+ readonly rotateMax: 0;
4994
+ readonly accentMax: 2;
4995
+ readonly moves: readonly ["one photo per screen, small (3–5 columns), far from the edges, with a plain caption beside it", "tiny numbered labels (\"01 — Clay\") instead of headings that shout", "a hairline (a shape one row high, 1–12 columns, colour soft or muted) as the only ornament", "the first screen may be mostly empty: let the eye start in the middle", "a free-mode gallery of small slides with a lot of space between them"];
4996
+ readonly avoid: readonly ["rotation", "xxl or screen type more than once on the page", "scrims", "pop and scaleIn"];
4997
+ readonly cliche: {
4998
+ readonly obvious: "beige, a centred tagline and three product cards";
4999
+ readonly flip: "one small object in a vast field, its words placed like a museum label";
5000
+ };
5001
+ readonly limits: {
5002
+ readonly hugeMax: 1;
5003
+ readonly noScrim: true;
5004
+ };
5005
+ }, {
5006
+ readonly id: "apothecary";
5007
+ readonly name: "Apothecary";
5008
+ readonly after: "Aesop";
5009
+ readonly feel: "Apothecary refinement: serif sentences that read like product writing in a literary magazine.";
5010
+ readonly empty: 0.5;
5011
+ readonly contrast: readonly [3.5, 2.2];
5012
+ readonly enters: readonly ["fadeRise", "clipReveal"];
5013
+ readonly pace: "slow";
5014
+ readonly ease: "drawer";
5015
+ readonly depthScale: 0.8;
5016
+ readonly rotateMax: 0;
5017
+ readonly accentMax: 2;
5018
+ readonly moves: readonly ["asymmetric: one photo on one side, a long well-cadenced paragraph (size m, at most 6 columns) in a wide margin on the other", "one object alone on the ground, nothing else in the section", "small labels set BESIDE or BELOW a block, never stacked above every heading"];
5019
+ readonly avoid: readonly ["centred text on more than a third of the text layers", "pop, scaleIn and blurIn"];
5020
+ readonly cliche: {
5021
+ readonly obvious: "a spa-beige hero with a \"Discover\" button";
5022
+ readonly flip: "the page reads like the label on the bottle: long sentences, one object, very few buttons";
5023
+ };
5024
+ readonly limits: {
5025
+ readonly centerMax: 0.34;
5026
+ };
5027
+ }, {
5028
+ readonly id: "type-as-image";
5029
+ readonly name: "Type as image";
5030
+ readonly after: "Pentagram";
5031
+ readonly feel: "Type does the visual work: one word set bigger than its column; everything else recedes.";
5032
+ readonly empty: 0.4;
5033
+ readonly contrast: readonly [5, 3];
5034
+ readonly enters: readonly ["maskRise", "clipReveal"];
5035
+ readonly pace: "normal";
5036
+ readonly ease: "inOut";
5037
+ readonly depthScale: 1;
5038
+ readonly rotateMax: 0;
5039
+ readonly accentMax: 6;
5040
+ readonly moves: readonly ["one word at screen size that bleeds off an edge", "a colour-block section (ground accent) carrying one huge number", "tiny precise captions pinned to the grid's edge", "a hairline across the full width (a shape one row high)", "photos sit behind or under enormous type"];
5041
+ readonly avoid: readonly ["card grids (three equal photos in a row)", "blurIn", "rotation"];
5042
+ readonly cliche: {
5043
+ readonly obvious: "a bold headline, a subhead and two buttons";
5044
+ readonly flip: "the name or one verb IS the picture; everything else is small";
5045
+ };
5046
+ readonly limits: {};
5047
+ }, {
5048
+ readonly id: "product-theatre";
5049
+ readonly name: "Product theatre";
5050
+ readonly after: "Apple";
5051
+ readonly feel: "One object per screen on a stage, generous space, a slow push in.";
5052
+ readonly empty: 0.5;
5053
+ readonly contrast: readonly [4, 2.5];
5054
+ readonly enters: readonly ["fadeRise", "scaleIn", "clipReveal", "blurIn"];
5055
+ readonly pace: "normal";
5056
+ readonly ease: "out";
5057
+ readonly depthScale: 1;
5058
+ readonly rotateMax: 0;
5059
+ readonly accentMax: 4;
5060
+ readonly moves: readonly ["a held section where one photo slowly pushes in (scale 1 → 1.08) while three short lines arrive one after another", "a headline, one muted line below it and one quiet button", "long vertical sections, one idea each — never a card grid", "one section on the ink colour for the film moment"];
5061
+ readonly avoid: readonly ["more than one button in the first section", "rotation", "pop", "card grids"];
5062
+ readonly cliche: {
5063
+ readonly obvious: "product photo, \"Shop now\" and a feature grid";
5064
+ readonly flip: "the object gets a stage and time: it is lit, it turns, it is named once";
5065
+ };
5066
+ readonly limits: {
5067
+ readonly firstButtonsMax: 1;
5068
+ };
5069
+ }, {
5070
+ readonly id: "editorial";
5071
+ readonly name: "Editorial";
5072
+ readonly after: "Monocle";
5073
+ readonly feel: "A magazine spread: a kicker, a serif headline, numbered features, photographs cropped tight.";
5074
+ readonly empty: 0.4;
5075
+ readonly contrast: readonly [4, 2.5];
5076
+ readonly enters: readonly ["fadeRise", "clipReveal", "maskRise"];
5077
+ readonly pace: "slow";
5078
+ readonly ease: "out";
5079
+ readonly depthScale: 0.8;
5080
+ readonly rotateMax: 2;
5081
+ readonly accentMax: 5;
5082
+ readonly moves: readonly ["numbered features: a number (size xl) + a headline + one line of dek", "a lead photo cropped tight at one edge, the headline tucked into its empty part", "a pull quote at a large size in its own column — only words you were given, or {fact:quote}", "body text in two columns (two text layers side by side)"];
5083
+ readonly avoid: readonly ["card grids", "blurIn and pop"];
5084
+ readonly cliche: {
5085
+ readonly obvious: "a blog-card grid with \"Read more\"";
5086
+ readonly flip: "one feature per spread, numbered like an issue";
5087
+ };
5088
+ readonly limits: {};
5089
+ }, {
5090
+ readonly id: "swiss";
5091
+ readonly name: "Swiss";
5092
+ readonly after: "Massimo Vignelli";
5093
+ readonly feel: "A strict grid, matter-of-fact, one accent; it reads like signage.";
5094
+ readonly empty: 0.4;
5095
+ readonly contrast: readonly [4, 2.5];
5096
+ readonly enters: readonly ["clipReveal"];
5097
+ readonly pace: "quick";
5098
+ readonly ease: "inOut";
5099
+ readonly depthScale: 0.5;
5100
+ readonly rotateMax: 0;
5101
+ readonly accentMax: 6;
5102
+ readonly moves: readonly ["a colour bar (a shape in the accent, 1–2 rows) carrying a section's name", "one oversized number at the top start of each block", "lists in strict columns (list layers)", "text aligned to the start in one measure, never centred"];
5103
+ readonly avoid: readonly ["centred text", "rotation", "blur"];
5104
+ readonly cliche: {
5105
+ readonly obvious: "\"minimal\" as grey cards";
5106
+ readonly flip: "a system you can read from across the room";
5107
+ };
5108
+ readonly limits: {
5109
+ readonly centerMax: 0;
5110
+ };
5111
+ }, {
5112
+ readonly id: "after-dark";
5113
+ readonly name: "After dark";
5114
+ readonly after: "film titles and dark keynotes";
5115
+ readonly feel: "Light in the dark: things emerge, linger and burn down.";
5116
+ readonly empty: 0.5;
5117
+ readonly contrast: readonly [4, 2.5];
5118
+ readonly enters: readonly ["clipReveal", "blurIn", "fadeRise", "maskRise"];
5119
+ readonly pace: "slow";
5120
+ readonly ease: "drawer";
5121
+ readonly depthScale: 1.2;
5122
+ readonly rotateMax: 3;
5123
+ readonly accentMax: 5;
5124
+ readonly moves: readonly ["photos emerge from the dark: a clipReveal from the bottom, or a held slow push", "an inhale: a near-empty dark screen with one small line, just before the signature", "a kinetic title of at most seven words, lit word by word as you scroll", "the last section is the latest hour: last call, the last ember"];
5125
+ readonly avoid: readonly ["a light ground on more than one section", "pop"];
5126
+ readonly cliche: {
5127
+ readonly obvious: "a dark hero photo with centred white text and \"Book now\"";
5128
+ readonly flip: "the page is the night itself: it opens dim, warms up, and ends at the last ember";
5129
+ };
5130
+ readonly limits: {
5131
+ readonly lightGroundsMax: 1;
5132
+ };
5133
+ }, {
5134
+ readonly id: "playful";
5135
+ readonly name: "Playful";
5136
+ readonly after: "Ettore Sottsass and Memphis";
5137
+ readonly feel: "Colour as joy: shapes, a tilt and overlap, a confident wink.";
5138
+ readonly empty: 0.4;
5139
+ readonly contrast: readonly [4, 2.5];
5140
+ readonly enters: readonly ["pop", "scaleIn", "fadeRise"];
5141
+ readonly pace: "quick";
5142
+ readonly ease: "out";
5143
+ readonly depthScale: 1.2;
5144
+ readonly rotateMax: 8;
5145
+ readonly accentMax: 10;
5146
+ readonly moves: readonly ["shapes (round) behind photos, slightly rotated", "photos tilted between -4 and 4 degrees, overlapping each other", "a cards gallery of things to pick up", "one word in a loud colour block"];
5147
+ readonly avoid: readonly ["more than three rotated layers in one section", "pop on text longer than three words"];
5148
+ readonly cliche: {
5149
+ readonly obvious: "random confetti and emoji";
5150
+ readonly flip: "two loud colours and one shape language, used with discipline";
5151
+ };
5152
+ readonly limits: {
5153
+ readonly rotatedPerSectionMax: 3;
5154
+ };
5155
+ }, {
5156
+ readonly id: "gallery";
5157
+ readonly name: "Gallery";
5158
+ readonly after: "a white-cube gallery and Are.na";
5159
+ readonly feel: "Works hung on a wall at different sizes, with care; captions tiny; depth as you walk.";
5160
+ readonly empty: 0.55;
5161
+ readonly contrast: readonly [3.5, 2.2];
5162
+ readonly enters: readonly ["fadeRise", "clipReveal"];
5163
+ readonly pace: "slow";
5164
+ readonly ease: "out";
5165
+ readonly depthScale: 1.2;
5166
+ readonly rotateMax: 0;
5167
+ readonly accentMax: 2;
5168
+ readonly moves: readonly ["works hung at three sizes and three depths (back, mid, front) so they slide past one another", "captions in xs like wall labels — only facts you were given", "a free-mode gallery strip that bleeds off the screen", "one work alone on a whole screen"];
5169
+ readonly avoid: readonly ["text on a photo", "rotation"];
5170
+ readonly cliche: {
5171
+ readonly obvious: "a masonry grid of square thumbnails";
5172
+ readonly flip: "a hang: different sizes, real space between, depth as you walk";
5173
+ };
5174
+ readonly limits: {
5175
+ readonly noScrim: true;
5176
+ readonly noTextOnPhoto: true;
5177
+ };
5178
+ }, {
5179
+ readonly id: "warm-craft";
5180
+ readonly name: "Warm craft";
5181
+ readonly after: "Stripe Press and mid-century print";
5182
+ readonly feel: "Made by hand, told in chapters: slow cross-fades, a darker band as a chapter break.";
5183
+ readonly empty: 0.45;
5184
+ readonly contrast: readonly [4, 2.5];
5185
+ readonly enters: readonly ["fadeRise", "clipReveal", "maskRise"];
5186
+ readonly pace: "slow";
5187
+ readonly ease: "out";
5188
+ readonly depthScale: 1;
5189
+ readonly rotateMax: 2;
5190
+ readonly accentMax: 4;
5191
+ readonly moves: readonly ["a large quote of their own words (only words you were given, or {fact:quote})", "photos with a slow inner drift, like a turning page", "a darker band (ground soft) as a chapter break with a big numeral", "hands at work shown large, the product small"];
5192
+ readonly avoid: readonly ["card grids"];
5193
+ readonly cliche: {
5194
+ readonly obvious: "rustic wood, a script font and \"Our story\"";
5195
+ readonly flip: "a story told in chapters, each with one picture and one sentence";
5196
+ };
5197
+ readonly limits: {};
5198
+ }];
5199
+ readonly presetLook: {
5200
+ readonly "clear-care": "swiss";
5201
+ readonly "swiss-grid": "swiss";
5202
+ readonly "trusted-advisor": "editorial";
5203
+ readonly "fresh-practice": "quiet";
5204
+ readonly "gallery-minimal": "gallery";
5205
+ readonly "warm-editorial": "editorial";
5206
+ readonly "soft-spa": "apothecary";
5207
+ readonly "quiet-luxury": "quiet";
5208
+ readonly "after-dark": "after-dark";
5209
+ readonly "ink-studio": "type-as-image";
5210
+ readonly "night-gallery": "gallery";
5211
+ readonly "tech-studio": "product-theatre";
5212
+ readonly "morning-glass": "product-theatre";
5213
+ readonly "holiday-light": "playful";
5214
+ readonly "frosted-portfolio": "gallery";
5215
+ readonly "coral-studio": "playful";
5216
+ readonly "corner-cafe": "warm-craft";
5217
+ readonly "kind-community": "warm-craft";
5218
+ readonly "little-ones": "playful";
5219
+ readonly "garden-party": "playful";
5220
+ readonly "bold-maker": "type-as-image";
5221
+ readonly festival: "playful";
5222
+ readonly zine: "type-as-image";
5223
+ readonly "fresh-market": "warm-craft";
5224
+ };
5225
+ };
4830
5226
 
4831
5227
  /** What an untouched node of one registered type saves as (`NODE_BASELINES`, generated from the live
4832
5228
  * iox-builder configs) — the builder serializer's flat `props` / `styleProps`, the trait names it has a
@@ -4933,6 +5329,443 @@ declare function artDirectionIssues(value: unknown): Array<{
4933
5329
  message: string;
4934
5330
  }>;
4935
5331
 
5332
+ /**
5333
+ * The LAYOUT LANGUAGE (premium components M8 — the prototype's CL2 / CL2.1, premium-sites plan "Breaking limits"): a page
5334
+ * composed as layers of closed kinds placed on a 12-column grid, with closed sizes, the look's five colours, roles, time
5335
+ * entrances, a parallax depth, held sections whose layers move by tracks, sideways sections, galleries, forms and a phone
5336
+ * reading order. The model writes no CSS and no node tree; `composeLayout` stamps ordinary builder nodes from it.
5337
+ *
5338
+ * Gate 1 typed the shape the three proof sites were saved in (iox-ai-guidance `prototypes/breaking-limits/round4|round3`).
5339
+ * Gate 2 moved the closed lists into the contract (`site.layout`, SPEC_SITE_LAYOUT): these enums are held equal to it by
5340
+ * layout-language.spec, and a generated page carries one in `PagePlan.layout` (a `LayoutPage`).
5341
+ */
5342
+ declare enum LayoutLayerKind {
5343
+ Word = "word",
5344
+ Heading = "heading",
5345
+ Text = "text",
5346
+ Photo = "photo",
5347
+ Gallery = "gallery",
5348
+ Button = "button",
5349
+ List = "list",
5350
+ Number = "number",
5351
+ Shape = "shape",
5352
+ Label = "label",
5353
+ Form = "form",
5354
+ Marquee = "marquee"
5355
+ }
5356
+ declare enum LayoutSize {
5357
+ Xs = "xs",
5358
+ S = "s",
5359
+ M = "m",
5360
+ L = "l",
5361
+ Xl = "xl",
5362
+ Xxl = "xxl",
5363
+ /** As wide as its columns allow — a word, never a sentence. */
5364
+ Screen = "screen"
5365
+ }
5366
+ /** The look's five colours, by role. */
5367
+ declare enum LayoutColour {
5368
+ Ground = "ground",
5369
+ Ink = "ink",
5370
+ Accent = "accent",
5371
+ Soft = "soft",
5372
+ Muted = "muted"
5373
+ }
5374
+ declare enum LayoutRole {
5375
+ Lead = "lead",
5376
+ Support = "support",
5377
+ Decoration = "decoration",
5378
+ Static = "static"
5379
+ }
5380
+ declare enum LayoutEnter {
5381
+ None = "none",
5382
+ Fade = "fade",
5383
+ FadeRise = "fadeRise",
5384
+ ScaleIn = "scaleIn",
5385
+ ClipReveal = "clipReveal",
5386
+ MaskRise = "maskRise",
5387
+ BlurIn = "blurIn",
5388
+ Pop = "pop"
5389
+ }
5390
+ declare enum LayoutDepth {
5391
+ Back = "back",
5392
+ Mid = "mid",
5393
+ Front = "front"
5394
+ }
5395
+ declare enum LayoutTransition {
5396
+ Cut = "cut",
5397
+ Flood = "flood",
5398
+ WipeUp = "wipe-up",
5399
+ WipeDown = "wipe-down",
5400
+ WipeStart = "wipe-start",
5401
+ WipeEnd = "wipe-end"
5402
+ }
5403
+ declare enum LayoutEase {
5404
+ Out = "out",
5405
+ InOut = "inOut",
5406
+ Drawer = "drawer",
5407
+ Linear = "linear"
5408
+ }
5409
+ declare enum LayoutPace {
5410
+ Slow = "slow",
5411
+ Normal = "normal",
5412
+ Quick = "quick"
5413
+ }
5414
+ declare enum LayoutSide {
5415
+ Bottom = "bottom",
5416
+ Top = "top",
5417
+ Start = "start",
5418
+ End = "end"
5419
+ }
5420
+ declare enum LayoutTrackProp {
5421
+ X = "x",
5422
+ Y = "y",
5423
+ Scale = "scale",
5424
+ Opacity = "opacity",
5425
+ Rotate = "rotate",
5426
+ Clip = "clip",
5427
+ Blur = "blur"
5428
+ }
5429
+ declare enum LayoutAlign {
5430
+ Start = "start",
5431
+ Center = "center",
5432
+ End = "end"
5433
+ }
5434
+ declare enum LayoutBleed {
5435
+ None = "none",
5436
+ Start = "start",
5437
+ End = "end",
5438
+ Both = "both"
5439
+ }
5440
+ /** A pool photo's shape (the inventory measures each one): what it keeps where nothing else gives it a height. */
5441
+ declare enum LayoutPhotoShape {
5442
+ Wide = "wide",
5443
+ Landscape = "landscape",
5444
+ Square = "square",
5445
+ Portrait = "portrait",
5446
+ Tall = "tall"
5447
+ }
5448
+ declare const LAYOUT_PHOTO_ASPECT: Readonly<Record<LayoutPhotoShape, string>>;
5449
+ declare enum LayoutSectionKind {
5450
+ Content = "content",
5451
+ Inhale = "inhale"
5452
+ }
5453
+ declare enum LayoutButtonVariant {
5454
+ Primary = "primary",
5455
+ Secondary = "secondary",
5456
+ Ghost = "ghost"
5457
+ }
5458
+ /** The product SliderContainer's own effects (iox-ui `slider-options.ts`). */
5459
+ declare enum LayoutGalleryEffect {
5460
+ Slide = "slide",
5461
+ Fade = "fade",
5462
+ Cube = "cube",
5463
+ Flip = "flip",
5464
+ Coverflow = "coverflow",
5465
+ Cards = "cards",
5466
+ Creative = "creative"
5467
+ }
5468
+ declare enum LayoutNavKind {
5469
+ Bar = "bar",
5470
+ Corner = "corner",
5471
+ Index = "index",
5472
+ Side = "side"
5473
+ }
5474
+ interface LayoutTrack {
5475
+ prop: `${LayoutTrackProp}`;
5476
+ from: number;
5477
+ to: number;
5478
+ /** The part of the section's scroll it plays over (0 = it arrives, 1 = it leaves; held: 0..1 is the hold). */
5479
+ at: [number, number];
5480
+ ease?: `${LayoutEase}`;
5481
+ }
5482
+ interface LayoutGallery {
5483
+ slides: Array<{
5484
+ photo: {
5485
+ id: string;
5486
+ };
5487
+ caption?: string;
5488
+ }>;
5489
+ effect?: `${LayoutGalleryEffect}`;
5490
+ perView?: number | 'auto';
5491
+ centered?: boolean;
5492
+ freeMode?: boolean;
5493
+ loop?: boolean;
5494
+ /** 0 or milliseconds. */
5495
+ autoplay?: number;
5496
+ /** Captions and pictures move at their own speed inside each slide (Swiper parallax). */
5497
+ drift?: boolean;
5498
+ /** Only in a held section: the page's scroll turns the slides. */
5499
+ scroll?: boolean;
5500
+ /** Gate 2: a list data source of the plan whose items the slides show (their image role) instead of fixed photos. */
5501
+ source?: string;
5502
+ }
5503
+ interface LayoutForm {
5504
+ preset: 'lead' | 'contact' | 'booking' | 'newsletter';
5505
+ title?: string;
5506
+ intro?: string;
5507
+ /** The chips a preset has (lead: needs, budget; booking: guests), in the business's language. */
5508
+ options?: Partial<Record<'needs' | 'budget' | 'guests', string[]>>;
5509
+ submit?: string;
5510
+ successTitle?: string;
5511
+ successText?: string;
5512
+ channel?: {
5513
+ label: string;
5514
+ href?: string;
5515
+ };
5516
+ }
5517
+ interface LayoutLayer {
5518
+ kind: `${LayoutLayerKind}`;
5519
+ role?: `${LayoutRole}`;
5520
+ text?: string;
5521
+ items?: string[];
5522
+ photo?: {
5523
+ id: string;
5524
+ };
5525
+ gallery?: LayoutGallery;
5526
+ form?: LayoutForm;
5527
+ variant?: `${LayoutButtonVariant}`;
5528
+ /** Grid lines: 1..13, or 1..12×track+1 in a sideways section. */
5529
+ col: [number, number];
5530
+ row: [number, number];
5531
+ size?: `${LayoutSize}`;
5532
+ color?: `${LayoutColour}`;
5533
+ align?: `${LayoutAlign}`;
5534
+ z?: number;
5535
+ bleed?: `${LayoutBleed}`;
5536
+ rotate?: number;
5537
+ fit?: 'cover' | 'contain';
5538
+ /** A button's section id. */
5539
+ to?: string;
5540
+ scrim?: boolean;
5541
+ enter?: `${LayoutEnter}`;
5542
+ from?: `${LayoutSide}`;
5543
+ beat?: number;
5544
+ depth?: `${LayoutDepth}`;
5545
+ inner?: number;
5546
+ kinetic?: boolean;
5547
+ motion?: LayoutTrack[];
5548
+ }
5549
+ interface LayoutSection {
5550
+ id: string;
5551
+ kind?: `${LayoutSectionKind}`;
5552
+ signature?: boolean;
5553
+ screens: number;
5554
+ pin?: boolean;
5555
+ track?: number;
5556
+ /** A colour name, or `photo:<id>`. */
5557
+ ground?: string;
5558
+ rows: number;
5559
+ transition?: `${LayoutTransition}`;
5560
+ layers: LayoutLayer[];
5561
+ /** Every layer's index once, in a phone's reading order. */
5562
+ phone?: number[];
5563
+ /** Silent section fallback (Doron, 2026-11-09): this place is the plan's ready-made section `PagePlan.sections[at]`,
5564
+ * stamped from its pattern in the look; it has no layers of its own. Set only by `fallBackBySection`, never by a model. */
5565
+ readyMade?: LayoutReadyMade;
5566
+ }
5567
+ /** The plan section a place of a composed page was given to: its index in `PagePlan.sections` and its pattern. */
5568
+ interface LayoutReadyMade {
5569
+ at: number;
5570
+ pattern: string;
5571
+ }
5572
+ /** How far a composed page breaks the usual layout (M8-G2-D5: follows How animated and the type's ceiling). */
5573
+ declare enum LayoutDial {
5574
+ Distinct = "distinct",
5575
+ Daring = "daring"
5576
+ }
5577
+ /** One composed page of a Site Plan (`PagePlan.layout`): the sections, and how far they dare. */
5578
+ interface LayoutPage {
5579
+ dial: `${LayoutDial}`;
5580
+ sections: LayoutSection[];
5581
+ }
5582
+ /** Where a layout's photo comes from (M8-G2-D10): `own:<assetId>` · `stock:<libraryKey>` · `box:<shape>`. */
5583
+ declare enum LayoutPhotoSource {
5584
+ Own = "own",
5585
+ Stock = "stock",
5586
+ Box = "box"
5587
+ }
5588
+ /** A photo id read: its source and key (`box:portrait` → box, portrait). Null when it names no source. */
5589
+ declare function parseLayoutPhotoId(id: string): {
5590
+ source: LayoutPhotoSource;
5591
+ key: string;
5592
+ } | null;
5593
+ /** What can be wrong with a composed page, each refused with a path (`checkLayout`, `expandLayoutWire`). */
5594
+ declare enum LayoutIssueCode {
5595
+ /** The answer cannot be read (not an object, no sections). */
5596
+ Shape = "shape",
5597
+ /** A value outside its closed list or range. */
5598
+ Value = "value",
5599
+ /** The page's structure (sections, leads, signature, phone order). */
5600
+ Structure = "structure",
5601
+ /** The look's composition notes (space, type contrast, rotation, accent, what it avoids). */
5602
+ Look = "look",
5603
+ /** How things move (Emil). */
5604
+ Motion = "motion",
5605
+ /** Words that would not read: on a photo's busy part, too faint, too long for their box. */
5606
+ Reading = "reading",
5607
+ /** A photo, a source, a fact or a form that is not the business's. */
5608
+ Content = "content",
5609
+ /** What daring asks for and the page does not do. */
5610
+ Daring = "daring",
5611
+ /** It repeats a page already made (the fingerprint). */
5612
+ Sameness = "sameness",
5613
+ /** The rendered page (the render check): overlap, overflow, a first screen without its lead. */
5614
+ Render = "render"
5615
+ }
5616
+ /** What the composer may settle by itself, with no word or place changed (`mendLayout`). */
5617
+ declare enum LayoutMendKind {
5618
+ /** Words over a busy or too-light part of a photo, in a look that allows scrims: the layer gets one. */
5619
+ Scrim = "scrim",
5620
+ /** The accent on more layers than the look allows: the least important words go back to the ink, then — where words
5621
+ * cannot give enough back — the least important accent bands take the ground nearest the accent their words read on. */
5622
+ Accent = "accent",
5623
+ /** Words too faint on their ground, where the ink holds there: they go back to the ink. */
5624
+ Ink = "ink",
5625
+ /** Decoration that enters with a move: it fades instead. */
5626
+ Fade = "fade",
5627
+ /** Fewer layers glide than the look asks (iox-ui#63): the layers that may glide and do not get a depth, most important
5628
+ * first — exactly as many as are missing. */
5629
+ Depth = "depth",
5630
+ /** A gallery naming a list with no pictures (iox-ui#64): it shows a list that has them — the only one, else the one
5631
+ * the section's words name, else the first in plan order. None, or the section's words name the list it named
5632
+ * (iox-ui#66): left to the model. */
5633
+ Source = "source"
5634
+ }
5635
+ /** Which rule chose a mended gallery's list. */
5636
+ declare enum LayoutSourceChoice {
5637
+ /** The plan has exactly one list with pictures. */
5638
+ Only = "only",
5639
+ /** Several: the first whose name or type the section's own words name. */
5640
+ Intent = "intent",
5641
+ /** Several, none named: the first in plan order. */
5642
+ Order = "order"
5643
+ }
5644
+ /** A list a composed gallery could name: its alias, the words it is known by (the alias, its type's name and label), and
5645
+ * whether its items carry a picture. Plan order. */
5646
+ interface LayoutGalleryList {
5647
+ alias: string;
5648
+ words: ReadonlyArray<string>;
5649
+ pictures: boolean;
5650
+ }
5651
+ /** An accent band the accent mend may move, and the ground it takes. */
5652
+ interface LayoutBandMove {
5653
+ section: number;
5654
+ ground: `${LayoutColour}`;
5655
+ }
5656
+ type LayoutMend = {
5657
+ kind: LayoutMendKind.Scrim | LayoutMendKind.Ink | LayoutMendKind.Fade;
5658
+ layer: string;
5659
+ } | {
5660
+ kind: LayoutMendKind.Accent;
5661
+ over: number;
5662
+ bands?: ReadonlyArray<LayoutBandMove>;
5663
+ } | {
5664
+ kind: LayoutMendKind.Depth;
5665
+ layers: ReadonlyArray<string>;
5666
+ } | {
5667
+ kind: LayoutMendKind.Source;
5668
+ layer: string;
5669
+ source: string;
5670
+ by: `${LayoutSourceChoice}`;
5671
+ };
5672
+ interface LayoutIssue {
5673
+ code: `${LayoutIssueCode}`;
5674
+ /** `sections[2].layers[1].box`, or `sections` for the page. */
5675
+ path: string;
5676
+ message: string;
5677
+ /** Set when the composer can settle it alone (`mendLayout`); the model is asked only for what is left. */
5678
+ mend?: LayoutMend;
5679
+ }
5680
+ interface LayoutSite {
5681
+ name: string;
5682
+ idea?: string;
5683
+ locale?: string;
5684
+ dial?: 'distinct' | 'daring';
5685
+ /** CL2.1: `{ preset, seed? }`. A CL2 site carries a round-three `recipe` and colours (the runner maps it to a preset). */
5686
+ look?: {
5687
+ preset?: string;
5688
+ seed?: string;
5689
+ recipe?: string;
5690
+ accent?: string;
5691
+ };
5692
+ motion?: {
5693
+ ease?: `${LayoutEase}`;
5694
+ pace?: `${LayoutPace}`;
5695
+ };
5696
+ nav?: {
5697
+ kind?: `${LayoutNavKind}`;
5698
+ links?: Array<{
5699
+ label: string;
5700
+ to: string;
5701
+ }>;
5702
+ };
5703
+ sections: LayoutSection[];
5704
+ }
5705
+ /** A size as CSS — the prototype's `.s-*` rules. `screen` is computed per word (`screenFontSize`). */
5706
+ declare const LAYOUT_FONT_SIZE: Readonly<Record<Exclude<LayoutSize, LayoutSize.Screen>, string>>;
5707
+ /** A colour name as the look's token (what the prototype probed off the preset: `--iox-bg` … `--iox-text-muted`). */
5708
+ declare const LAYOUT_COLOUR_TOKEN: Readonly<Record<LayoutColour, string>>;
5709
+ /** Words in the accent colour read the accent's text shade (round four: `accent-text`). */
5710
+ declare const LAYOUT_ACCENT_TEXT = "var(--iox-accent-text)";
5711
+ /** Emil's easing tokens (never ease-in). */
5712
+ declare const LAYOUT_EASING: Readonly<Record<LayoutEase, string>>;
5713
+ /** How long an entrance takes, by the look's pace and the layer's role, and how far apart the beats are. */
5714
+ declare const LAYOUT_PACE: Readonly<Record<LayoutPace, {
5715
+ lead: number;
5716
+ support: number;
5717
+ decoration: number;
5718
+ gap: number;
5719
+ }>>;
5720
+ /** A stagger that shrinks as the beats go on, capped at the sixth — never a metronome. */
5721
+ declare const LAYOUT_BEAT_DELAY: ReadonlyArray<number>;
5722
+ /** How far a rise travels, by role (px). */
5723
+ declare const LAYOUT_RISE: Readonly<Record<LayoutRole, number>>;
5724
+ /** The kinds a visitor OPERATES: never moved for style (Emil gate 4). */
5725
+ declare const LAYOUT_OPERATED: ReadonlySet<string>;
5726
+ declare const LAYOUT_TEXT_KINDS: ReadonlySet<string>;
5727
+ /** The grid's gutter and column gap (the prototype's `--gutter` and `.grid`). */
5728
+ declare const LAYOUT_GUTTER = "max(4vw, 16px)";
5729
+ declare const LAYOUT_COLUMN_GAP = "1.2vw";
5730
+ /** A depth's `params.phone`: scene-core `ParallaxPhone.Rest` — stacked on a phone, a layer never glides into its neighbour.
5731
+ * Stamped verbatim and read where it plays (not imported, as `PatternTrack`); compose-layout.spec holds the two equal. */
5732
+ declare const LAYOUT_DEPTH_ON_PHONE = "rest";
5733
+ /** Below this opacity a layer counts as hidden: the static check's rule for an entrance or an exit that hides, and the
5734
+ * render check's for words a held section never shows together. */
5735
+ declare const LAYOUT_HIDDEN_OPACITY = 0.3;
5736
+ /**
5737
+ * The stretches of a held section's play (0..1) in which a layer's opacity tracks show it — above
5738
+ * `LAYOUT_HIDDEN_OPACITY`, each fade taken as linear. A layer with no opacity track shows throughout. Captions that take
5739
+ * turns in one cell (the live café's four, M8 gate 2 fix first part 3) never show together, so they never overlap.
5740
+ */
5741
+ declare function layerShownSpans(l: Pick<LayoutLayer, 'motion'>): Array<[number, number]>;
5742
+ /** Whether two layers' shown stretches meet for any length (no spans: shown throughout). */
5743
+ declare function shownTogether(a: ReadonlyArray<[number, number]> | undefined, b: ReadonlyArray<[number, number]> | undefined): boolean;
5744
+ /** A control's tooltip words: the main entry's `A11yTrait.Tooltip` (premium M5), held equal by compose-layout.spec. */
5745
+ declare const LAYOUT_TOOLTIP_TRAIT = "tooltip";
5746
+ /** The phone: at or under this breakpoint a section stacks in its `phone` order (the `mobile` breakpoint, ≤ 767px). */
5747
+ declare const LAYOUT_PHONE_BREAKPOINT = "mobile";
5748
+ /** A phone section's padding above and below (M1.3: 56). */
5749
+ declare const LAYOUT_PHONE_PADDING = "56px";
5750
+ /** The kind of layer, for the phone's rhythm: the space between two stacked layers says how they belong (M1.3). */
5751
+ declare function phoneGapBefore(prev: LayoutLayer | null, next: LayoutLayer): number;
5752
+ /** A `screen` word's smallest and largest size (px), and the share of its room it fills (the renderer's margin). */
5753
+ declare const LAYOUT_SCREEN_PX: readonly [number, number];
5754
+ /** How wide `cols` columns of the laptop grid stand, in vw (12 columns: 92vw). */
5755
+ declare function layoutColumnsVw(cols: number): number;
5756
+ /** The room a layer of `cols` columns has on a screen `width` px wide, in px — a phone stacks every layer full width
5757
+ * inside its gutters (`max(4vw, 16px)` a side). */
5758
+ declare function layoutRoomPx(cols: number, width: number, phone: boolean): number;
5759
+ /**
5760
+ * A `screen` word's size (iox-ui#46): the word fills its columns' width — `widthEm` is how wide it stands at 1em in its
5761
+ * own face (design-core `textWidthEm`, from the face's measured letters) — and never stands taller than its rows; never
5762
+ * under 36px or over 560px. `rows` 0 sizes by width alone (a phone's stacked word). Held sections are one screen tall.
5763
+ */
5764
+ declare function screenFontSize(widthEm: number, cols: number, rows: number, sectionRows: number, screens: number): string;
5765
+ /** How many px a `screen` word `widthEm` wide runs past its room at its smallest size, on a screen `width` px wide — 0
5766
+ * when it fits. The one thing sizing cannot mend: the static check refuses it (a browser would show it cut). */
5767
+ declare function screenWordOverflowPx(widthEm: number, cols: number, width: number, phone: boolean): number;
5768
+
4936
5769
  /**
4937
5770
  * The Site Plan (contract `site.planShape`, `SPEC_SITE_PLAN_SHAPE`: every key typed and explained, and the
4938
5771
  * validator reads its key lists from it) — the ONE document the website wizard writes
@@ -5119,7 +5952,12 @@ interface PagePlan {
5119
5952
  /** The inferred need this page answers (the Plan screen tags it "we added") — a harness-core need id. */
5120
5953
  readonly need?: SiteNeedId;
5121
5954
  readonly seo?: PageSeoPlan;
5955
+ /** The page from patterns — a composed page keeps them as its fallback. */
5122
5956
  readonly sections: ReadonlyArray<PageSectionPlan>;
5957
+ /** M8 gate 2: the page is composed in the layout language (written with the pages; the layout step fills `layout`). */
5958
+ readonly compose?: boolean;
5959
+ /** M8 gate 2: the composed page — when present it is stamped (`composeLayout`) instead of `sections`. */
5960
+ readonly layout?: LayoutPage;
5123
5961
  }
5124
5962
  declare enum GlobalSlot {
5125
5963
  Header = "header",
@@ -5153,6 +5991,15 @@ interface SitePlan {
5153
5991
  /** M7: what every picture made for the site shares (a world and its five parts) — set by the generation from the
5154
5992
  * business type and the look (`artDirectionFor`), never a model's. */
5155
5993
  readonly artDirection?: ArtDirection;
5994
+ /** M8 gate 2: what the site is built around, written with the pages and shown on the Plan step. */
5995
+ readonly direction?: PlanDirection;
5996
+ }
5997
+ /** M8 gate 2: the idea a site's composed pages serve — the usual site for the business, and what this one does instead. */
5998
+ interface PlanDirection {
5999
+ readonly idea: string;
6000
+ readonly cliche: string;
6001
+ readonly flip: string;
6002
+ readonly rules: ReadonlyArray<string>;
5156
6003
  }
5157
6004
  /** SC6b: the owner's film — the numbered pictures the wizard's browser made of their video (media-core). */
5158
6005
  interface PlanFilm {
@@ -5797,7 +6644,13 @@ declare enum SitePlanIssueCode {
5797
6644
  * no film (or twice). Set by the build, never by a model. */
5798
6645
  Film = "film",
5799
6646
  /** M7: the art direction is not a picture world with its five parts. Set by the generation, never by a model. */
5800
- ArtDirection = "art-direction"
6647
+ ArtDirection = "art-direction",
6648
+ /** M8 gate 2: the site's direction (the idea, the cliché, the flip, three rules) — written whole or not at all. */
6649
+ Direction = "direction",
6650
+ /** M8 gate 2: which pages are composed — the home page and at most one other that is no per-item page. */
6651
+ Compose = "compose",
6652
+ /** M8 gate 2: a composed page's layout (`checkLayout`'s issues, each at its path under `layout`). */
6653
+ Layout = "layout"
5801
6654
  }
5802
6655
  type SitePlanIssue = PathIssue<SitePlanIssueCode>;
5803
6656
  interface SitePlanValidation {
@@ -5899,7 +6752,22 @@ interface ComposeIssue {
5899
6752
  interface ComposeContext {
5900
6753
  /** The calendar year the copyright line reads (`{year}`), from the caller's clock. */
5901
6754
  year: number;
6755
+ /** M8 gate 2: where a composed page's photo lives (`own:<assetId>`, `stock:<key>`; a `box:<shape>` has none). A
6756
+ * photo with no address is the empty image box (DS3), publish-blocking like a pattern's. */
6757
+ photoSrc?: (photoId: string) => string;
6758
+ /** A photo's description ('' = decorative). */
6759
+ photoAlt?: (photoId: string) => string;
6760
+ /** A photo's shape (the inventory's); a `box:<shape>` id names its own. */
6761
+ photoShape?: (photoId: string) => `${LayoutPhotoShape}` | undefined;
6762
+ }
6763
+ /** Where a composed layout's photos are, as the server keeps them and the screens read them (M8 gate 2): id → address. */
6764
+ interface LayoutPhotoAddress {
6765
+ url: string;
6766
+ alt: string;
6767
+ shape?: string;
5902
6768
  }
6769
+ /** The composer's context for a site whose layouts name photos: the year, and each photo's address, words and shape. */
6770
+ declare function composeContextOf(year: number, photos?: Readonly<Record<string, LayoutPhotoAddress>>): ComposeContext;
5903
6771
  interface ComposedPage {
5904
6772
  key: string;
5905
6773
  name: string;
@@ -5910,9 +6778,14 @@ interface ComposedPage {
5910
6778
  status: 'draft';
5911
6779
  /** The site's language (L0-2): the page's locale — the fonts it loads, the side its entrances slide from. */
5912
6780
  locale: `${SiteLocale}`;
5913
- /** DS3: every page the wizard creates follows the look (page-bg / text / font-body). */
6781
+ /** DS3: every page the wizard creates follows the look (page-bg / text / font-body). M8 gate 2: a composed page names
6782
+ * the plan page its layout is (`layoutSource`; the build adds its run) — what Design ▸ Re-fit recomposes it from. */
5914
6783
  pageSettings: {
5915
6784
  designSystem: true;
6785
+ layoutSource?: {
6786
+ pageKey: string;
6787
+ runId?: string;
6788
+ };
5916
6789
  };
5917
6790
  /** M1-6c: the page's search-result words — written (a static page) or bound to the route item (a template page),
5918
6791
  * in the seo-core document shape the shared `resolveSeo` reads. */
@@ -5958,6 +6831,17 @@ declare const SAMPLE_IMAGE_REF: RegExp;
5958
6831
  declare function sampleImageRef(index: number): string;
5959
6832
  /** The 1-based index a `{sampleImage:k}` value names, or null. */
5960
6833
  declare function parseSampleImageRef(value: unknown): number | null;
6834
+ /** The content type behind a data source alias (a relative source reads its `within` list's type). */
6835
+ declare function contentTypeOfSource(alias: string, plan: SitePlan): ContentTypePlan | undefined;
6836
+ /** Every list a composed gallery could name (the plan's query sources), in plan order: what it is called and whether its
6837
+ * items carry a picture (an `image` role). */
6838
+ declare function layoutGalleryLists(plan: SitePlan): LayoutGalleryList[];
6839
+ /** The list sources a composed gallery may show (`gallery.source`): the plan's query sources whose items have a picture.
6840
+ * A list with none (a FAQ) would repeat no slide and draw an empty band (iox-ui#59), so it is never offered and the check
6841
+ * refuses it. */
6842
+ declare function layoutGallerySources(plan: SitePlan): string[];
6843
+ /** A NEW Form stamped from a forms-core preset, exactly as a pattern's preset form is (premium M8: a layout's form layer). */
6844
+ declare function composePresetForm(id: string, presetId: string, owner: string): SerializedNode;
5961
6845
  /**
5962
6846
  * Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
5963
6847
  * composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
@@ -6499,7 +7383,8 @@ declare enum PlanWireEntry {
6499
7383
  Section = "section",
6500
7384
  SlotText = "slotText",
6501
7385
  SlotLink = "slotLink",
6502
- Globals = "globals"
7386
+ Globals = "globals",
7387
+ Direction = "direction"
6503
7388
  }
6504
7389
  /** The plan keys the model does not write, and where the expander takes each from. */
6505
7390
  declare const PLAN_WIRE_DERIVED: Readonly<Record<string, string>>;
@@ -6594,7 +7479,9 @@ declare enum AiStep {
6594
7479
  MakePictures = "image",
6595
7480
  /** M7: a small vision model looks at each made picture against its slot (one structured answer). */
6596
7481
  CheckPictures = "imageReview",
6597
- NameStructures = "scanNaming"
7482
+ NameStructures = "scanNaming",
7483
+ /** M8 gate 2: each composed page's layout, one strict request a page, after the plan (M8-G2-D2). */
7484
+ ComposePages = "composePages"
6598
7485
  }
6599
7486
  declare const AI_STEPS: ReadonlyArray<AiStep>;
6600
7487
  /** Each step's name on the wire (the control plane's `label`, the console) — the screens translate their own. */
@@ -6650,6 +7537,9 @@ interface AiModelEntry {
6650
7537
  recommendedFor?: ReadonlyArray<`${AiStep}`>;
6651
7538
  /** The steps it runs when the default is not available (the control plane's `fallbackModel`). */
6652
7539
  fallbackFor?: ReadonlyArray<`${AiStep}`>;
7540
+ /** The steps whose FOLLOWING requests it is the default for, when the studio chose no model: a page composed after
7541
+ * Home (M8 gate 2 follow-up D4 — Opus composes Home, Sonnet the second page). None = the step's default runs them. */
7542
+ followingFor?: ReadonlyArray<`${AiStep}`>;
6653
7543
  capabilities: ReadonlyArray<`${AiCapability}`>;
6654
7544
  /** Null when the provider reports each call's cost itself and the list carries no price. */
6655
7545
  price: AiTokenPrice | null;
@@ -6864,7 +7754,9 @@ declare enum PlanEditOp {
6864
7754
  SetSlot = "setSlot",
6865
7755
  AddContentType = "addContentType",
6866
7756
  AddField = "addField",
6867
- SetSectionData = "setSectionData"
7757
+ SetSectionData = "setSectionData",
7758
+ /** A composed page's layout asked again with the owner's sentence (M8-G2-D13): its layout is dropped, the layout step re-asks it. */
7759
+ RecomposePage = "recomposePage"
6868
7760
  }
6869
7761
  type PlanEdit = {
6870
7762
  op: `${PlanEditOp.AddPage}`;
@@ -6925,6 +7817,10 @@ type PlanEdit = {
6925
7817
  page: string;
6926
7818
  index: number;
6927
7819
  binding: string;
7820
+ } | {
7821
+ op: `${PlanEditOp.RecomposePage}`;
7822
+ page: string;
7823
+ ask: string;
6928
7824
  };
6929
7825
  /**
6930
7826
  * Every op's keys, explained — what the format is built from and what `validatePlanEdits` reads (`key?` optional).
@@ -6973,7 +7869,9 @@ declare enum PlanEditIssueCode {
6973
7869
  /** The home page stays (a plan has exactly one). */
6974
7870
  HomePage = "home-page",
6975
7871
  /** A template page (one item per route) and a plain page cannot be merged. */
6976
- MergeTemplate = "merge-template"
7872
+ MergeTemplate = "merge-template",
7873
+ /** Only a composed page's layout is asked again; a page of patterns is edited by its sections. */
7874
+ NotComposed = "not-composed"
6977
7875
  }
6978
7876
  type PlanEditIssue = PathIssue<PlanEditIssueCode>;
6979
7877
  interface PlanEditResult {
@@ -6987,6 +7885,8 @@ declare function validatePlanEdits(edits: unknown): {
6987
7885
  valid: boolean;
6988
7886
  issues: PlanEditIssue[];
6989
7887
  };
7888
+ /** The sentence each page's layout is asked again with (the set's last ask for a page wins) — what the layout step reads. */
7889
+ declare function recomposeAsks(edits: ReadonlyArray<PlanEdit>): Record<string, string>;
6990
7890
  /**
6991
7891
  * Apply a set of edits to a plan — all of them, or none (any issue refuses the set and returns the plan unchanged). The
6992
7892
  * sources only removed pages and sections read are dropped with them; sources nothing read before are kept; the sources
@@ -7794,5 +8694,706 @@ declare function applyPictureScrims(trees: ReadonlyArray<SerializedNode>, chosen
7794
8694
  /** The relative luminance of a CSS colour (for a review sheet or a log), or null. */
7795
8695
  declare function luminanceOf(colour: string): number | null;
7796
8696
 
7797
- export { ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, chooseScrim, composeNavHeader, composeSection, composeSite, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedDataSources, describePlanData, describeShapeKey, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, luminanceOf, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneMenuPages, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, recipeListBinds, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, sampleImageRef, scoreStockPhoto, sectionEntrances, sectionPatternIds, sectionToWire, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, siteNavPages, slotBudget, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPicture, writtenTexts };
7798
- export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposedDataSource, ComposedItem, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, JsonSchema, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PlacedFilm, PlainObject, PlanChange, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionInput, SectionOptions, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
8697
+ /**
8698
+ * THE layout composer (premium components M8, gate 1): a page written in the layout language (`layout-language.ts`) in,
8699
+ * ordinary builder nodes out — the same `createSerializedNode` every composed page is made of, so the builder reloads it
8700
+ * and saves it unchanged and the engine renders it with nothing new to learn. No second renderer: a section is a Section
8701
+ * holding a 12-column grid, a held section is a Scene, a layer is a Heading / Text / Image / Slider / Form / Button
8702
+ * placed on the grid, its time entrance a `viewportEnter` interaction, its depth a `scrollProgress` parallax, its held
8703
+ * motion scene-core tracks. What the product cannot say yet is returned as a GAP (named in m8-proof-sites.md), never
8704
+ * worked around with CSS. Pure and deterministic.
8705
+ */
8706
+ declare enum LayoutGapCode {
8707
+ /** M8-G1: a `screen` word is sized from its face's measured letters (iox-ui#46), not fitted to its cell in the browser. */
8708
+ ScreenFit = "screen-fit",
8709
+ /** M8-G2: no blur — a `blurIn` entrance rises without it, a `blur` track is dropped. */
8710
+ Blur = "blur",
8711
+ /** M8-G3: `scaleIn` / `pop` start at the product's 0.8, not 0.95 / 0.9, and `pop` has no overshoot. */
8712
+ ScaleIn = "scale-in",
8713
+ /** M8-G4: a held layer's keys ease one way (smoothstep), whatever the layout's ease. */
8714
+ TrackEase = "track-ease",
8715
+ /** M8-G5: a depth glides at the product's one speed (no per-look scale), and a picture's own drift inside its frame
8716
+ * is a fixed over-scale. */
8717
+ DepthSpeed = "depth-speed",
8718
+ /** M8-G6: the navigation is the product's bar — a corner, index or side menu is drawn as the bar. */
8719
+ NavKind = "nav-kind",
8720
+ /** M8-G7: a link to a section scrolls by an action; it is no address (`#id`) a visitor can share. */
8721
+ SectionLink = "section-link",
8722
+ /** M8-G9: a slider on a held section's stage is played by the scroll whether or not the layout asked. */
8723
+ StageSlider = "stage-slider",
8724
+ /** M8-G10: a flood opens from the centre as an inset, not as a circle from the top edge. */
8725
+ Flood = "flood",
8726
+ /** M8-G11: a held section stacks on a phone and its layers stand at rest (they cannot say "no motion here"). */
8727
+ PhoneRest = "phone-rest",
8728
+ /** Motion or a sideways track on a section that is not held: the product moves layers by tracks only in a Scene. */
8729
+ UnheldMotion = "unheld-motion",
8730
+ /** A form layer wears the product's preset: its fields are the preset's, the layout's options fill its choices. */
8731
+ FormPreset = "form-preset",
8732
+ /** A gallery naming a list with no pictures and no slides of its own shows photo boxes (iox-ui#59). */
8733
+ GalleryNoPictures = "gallery-no-pictures"
8734
+ }
8735
+ interface LayoutGap {
8736
+ code: LayoutGapCode;
8737
+ /** `sections[i].layers[j]`, `sections[i]` or `nav`. */
8738
+ path: string;
8739
+ detail: string;
8740
+ }
8741
+ declare enum LayoutColourMode {
8742
+ Light = "light",
8743
+ Dark = "dark"
8744
+ }
8745
+ interface ComposeLayoutOptions {
8746
+ /** Prefix of every node id (`<id>-s0-l1`). */
8747
+ id?: string;
8748
+ /** The look's colour mode: which colour names are light (a scrim under light words is dark, and the other way). */
8749
+ mode?: `${LayoutColourMode}`;
8750
+ /** Where the studio keeps each photo (its media URL). */
8751
+ photoSrc: (photoId: string) => string;
8752
+ /** A photo's description; '' (decorative) when not given. */
8753
+ photoAlt?: (photoId: string) => string;
8754
+ /** A photo's shape: the height its frame keeps where it stacks (a phone, a Scene with no scroll). Landscape when not given. */
8755
+ photoShape?: (photoId: string) => `${LayoutPhotoShape}` | undefined;
8756
+ /** Silent section fallback: the node a place given to the plan's ready-made section stands as (`LayoutSection.readyMade`),
8757
+ * stamped by the caller from that plan section's pattern with `id` as its root id. A layout with such a place and no
8758
+ * stamper is refused. */
8759
+ readyMade?: (section: LayoutSection, id: string) => SerializedNode;
8760
+ /** The design the page wears (its fonts size a `screen` word, iox-ui#46). Default: the look's preset in `mode`. */
8761
+ design?: DesignChoices;
8762
+ /** Gate 2: a list data source's picture and name fields — a gallery naming the source shows its items. Null when the
8763
+ * source has no picture field (the gallery keeps its own slides). */
8764
+ sourceFields?: (alias: string) => {
8765
+ image: string;
8766
+ title?: string;
8767
+ } | null;
8768
+ }
8769
+ interface ComposedLayout {
8770
+ /** The page's layout: one root per section. */
8771
+ layout: SerializedNode[];
8772
+ /** The site header (a global BEFORE element) with the layout's section links, or null when the layout has no nav. */
8773
+ header: SerializedNode | null;
8774
+ /** The node id each section's id became (what its links scroll to). */
8775
+ sections: Record<string, string>;
8776
+ gaps: LayoutGap[];
8777
+ }
8778
+ /**
8779
+ * Words drawn on a shape or a photo at a laptop's width lose it on a phone: the shape is hidden and every layer stacks,
8780
+ * so they read on the section's own ground there. When their colour would vanish into that ground (the live clinic's
8781
+ * "What we treat", white on its shape, and the bar's label on its photo — 1:1 on the phone), the phone gives them the
8782
+ * colour the ground's words take; otherwise null (M8 gate 2, fix first part 3).
8783
+ */
8784
+ declare function phoneWordsColour(l: LayoutLayer, li: number, s: Pick<LayoutSection, 'layers' | 'ground'>): string | null;
8785
+ /** The scheme a form on this section ground wears, or null on the page's own ground. */
8786
+ declare function layoutFormScheme(ground: string | undefined): ColorScheme | null;
8787
+ /**
8788
+ * A layout-language page → its layout and header. Deterministic: the same layout composes to byte-identical nodes.
8789
+ * Refuses (ComposeError) a link to a section the layout does not have; everything the product cannot say comes back in
8790
+ * `gaps`.
8791
+ */
8792
+ declare function composeLayout(site: LayoutSite, options: ComposeLayoutOptions): ComposedLayout;
8793
+
8794
+ /** A look's composition notes (contract `site.layout.looks`): what a composed page in that look keeps to. */
8795
+ type LayoutLook = (typeof SPEC_SITE_LAYOUT.looks)[number];
8796
+ /**
8797
+ * The style preset a design wears (M8 gate 2): the preset it IS, else the closest of its flavor — same font pairing,
8798
+ * then the most of shape · density · pill buttons · tint · mode in common, then the nearer brand colour (six pairings
8799
+ * carry two presets each: Quiet luxury and Soft spa are both Linen + Cormorant; Morning glass and Coral studio differ by
8800
+ * their colour alone) — so an owner whose brand became a reference colour still wears THEIR preset's composition notes.
8801
+ * Never null: a design with no preset of its flavor reads the first preset's.
8802
+ */
8803
+ declare function layoutPresetOf(choices: DesignChoices): StylePreset;
8804
+ /** A preset's look (the round-three composition notes it carries). */
8805
+ declare function layoutLookOf(presetId: string): LayoutLook;
8806
+ /** The pace and ease a composed page moves with: its look's. */
8807
+ declare function layoutMotionOf(presetId: string): {
8808
+ pace: `${LayoutPace}`;
8809
+ ease: `${LayoutEase}`;
8810
+ };
8811
+ /**
8812
+ * How far a composed page dares (M8-G2-D5): daring when the look moves Lively or Expressive and the business type's
8813
+ * ceiling allows it (a trust or care type never dares), else distinct. `ceiling` is harness-core's for the type.
8814
+ */
8815
+ declare function layoutDialOf(animate: string | null | undefined, ceiling: string | null | undefined): `${LayoutDial}`;
8816
+
8817
+ /** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
8818
+ declare const LAYOUT_WIRE_AUTOPLAY_MS = 5000;
8819
+ interface LayoutWireSlot {
8820
+ slot: string;
8821
+ text: string;
8822
+ }
8823
+ interface LayoutWireTrack {
8824
+ prop: string;
8825
+ ease: string;
8826
+ values: number[];
8827
+ }
8828
+ interface LayoutWireLayer {
8829
+ kind: string;
8830
+ role: string;
8831
+ text: string;
8832
+ items: string[];
8833
+ photos: string[];
8834
+ source: string;
8835
+ box: number[];
8836
+ size: string;
8837
+ color: string;
8838
+ align: string;
8839
+ z: number;
8840
+ bleed: string;
8841
+ rotate: number;
8842
+ to: string;
8843
+ variant: string;
8844
+ enter: string;
8845
+ depth: string;
8846
+ inner: number;
8847
+ flags: string[];
8848
+ perView: number;
8849
+ slots: LayoutWireSlot[];
8850
+ motion: LayoutWireTrack[];
8851
+ }
8852
+ interface LayoutWireSection {
8853
+ id: string;
8854
+ kind: string;
8855
+ screens: number;
8856
+ hold: number;
8857
+ ground: string;
8858
+ rows: number;
8859
+ transition: string;
8860
+ phone: number[];
8861
+ layers: LayoutWireLayer[];
8862
+ }
8863
+ interface LayoutWire {
8864
+ sections: LayoutWireSection[];
8865
+ }
8866
+ /** The strict format for one composed page. */
8867
+ declare function layoutWireJsonSchema(): JsonSchema;
8868
+ /**
8869
+ * A section's beats, never asked: the lead enters first; every other entering layer takes the next beat in the order it
8870
+ * was written, held at the stagger's last (Emil's shrinking stagger reads the beat and stops shrinking at the sixth; the
8871
+ * prototype wrote it on fewer than half the layers). ONE rule
8872
+ * for the wire's expansion and for a page a repair edited (`applyLayoutEdits`).
8873
+ */
8874
+ declare function derivedBeats(layers: ReadonlyArray<{
8875
+ role?: unknown;
8876
+ enter?: unknown;
8877
+ }>): number[];
8878
+ /**
8879
+ * The wire → a layout page. Refuses (issues with a path) only what it cannot read at all — a missing `sections`, a
8880
+ * section or layer that is not an object; everything a model can get wrong in a well-formed answer is `checkLayout`'s.
8881
+ */
8882
+ declare function expandLayoutWire(wire: unknown, dial: `${LayoutDial}`): {
8883
+ page: LayoutPage | null;
8884
+ issues: LayoutIssue[];
8885
+ };
8886
+ /** A layout page (or a saved CL2.1 site's sections) → the wire. */
8887
+ declare function layoutToWire(page: Pick<LayoutPage, 'sections'>): LayoutWire;
8888
+
8889
+ /**
8890
+ * The render check of a composed page (M8-G2-D8), split where it can run. `measureLayout` runs in a BROWSER (the owner's,
8891
+ * on the Plan step — iox-cms has none): it reads the rendered boxes of the composed page's layers. `wordsOverPhotos` names
8892
+ * the photo behind each word box and the part of the frame it covers; iox-cms reads those pixels (`pixelsUnder`, on the
8893
+ * photo's own RGBA after `coverCrop`); `judgeLayoutRender` turns both into issues with a path, like `checkLayout`. The
8894
+ * rules are the prototype's (`prototypes/breaking-limits/code/render-check.cjs`); its Playwright run stays the harness's.
8895
+ */
8896
+ declare enum LayoutViewport {
8897
+ Desktop = "desktop",
8898
+ Phone = "phone"
8899
+ }
8900
+ /** The two widths a composed page is checked at (the prototype's). */
8901
+ declare const LAYOUT_VIEWPORTS: Readonly<Record<LayoutViewport, {
8902
+ width: number;
8903
+ height: number;
8904
+ }>>;
8905
+ interface LayoutRect {
8906
+ l: number;
8907
+ t: number;
8908
+ r: number;
8909
+ b: number;
8910
+ }
8911
+ interface MeasuredLayer {
8912
+ /** `sections[i].layers[j]`. */
8913
+ path: string;
8914
+ section: number;
8915
+ kind: string;
8916
+ role: string;
8917
+ bleed: boolean;
8918
+ scrim: boolean;
8919
+ /** It rides a sideways track: where it stands at rest is not where it is read. */
8920
+ track: boolean;
8921
+ z: number;
8922
+ box: LayoutRect;
8923
+ /** Where its words are (a text's line boxes, a button's box); null when it carries none. */
8924
+ words: LayoutRect | null;
8925
+ /** On a laptop, in a held section: the stretches of its play its opacity tracks show it (`layerShownSpans`); absent,
8926
+ * it shows throughout. Measured at rest every layer shows, so words that take turns would read as overlapping. */
8927
+ shown?: Array<[number, number]>;
8928
+ /** px. */
8929
+ size: number;
8930
+ weight: number;
8931
+ /** The words' computed colour. */
8932
+ color: string;
8933
+ /** A photo layer's id. */
8934
+ photo?: string;
8935
+ /** The depth it glides at as the page scrolls (`layoutGlideDepth`); absent: it moves with the page. */
8936
+ depth?: 'back' | 'front';
8937
+ }
8938
+ interface MeasuredLayout {
8939
+ viewport: `${LayoutViewport}`;
8940
+ width: number;
8941
+ height: number;
8942
+ /** The page's own width as laid out: wider than `width` means it scrolls sideways. */
8943
+ scrollWidth: number;
8944
+ sections: Array<{
8945
+ top: number;
8946
+ height: number;
8947
+ held: boolean;
8948
+ }>;
8949
+ layers: MeasuredLayer[];
8950
+ }
8951
+ /** A layer node's class (`iox-node-<id>`) — what both renderers put on every node. */
8952
+ declare const layoutNodeClass: (prefix: string, i: number, j?: number) => string;
8953
+ /**
8954
+ * In the browser: the composed page's layers as rendered under `root` (the offscreen render, `prefix` its node id prefix),
8955
+ * in the root's own coordinates. Run with the page at rest (scrolled to its top, entrances settled).
8956
+ */
8957
+ declare function measureLayout(root: Element, page: Pick<LayoutPage, 'sections'>, prefix: string, viewport: `${LayoutViewport}`): MeasuredLayout;
8958
+ /** Words on a photo: the photo under them (the topmost covering most of their box) and the part of its frame they cover. */
8959
+ interface PhotoWordsArea {
8960
+ path: string;
8961
+ viewport: `${LayoutViewport}`;
8962
+ photo: string;
8963
+ /** The frame's size in px (what `coverCrop` crops the photo to). */
8964
+ frame: {
8965
+ w: number;
8966
+ h: number;
8967
+ };
8968
+ /** Fractions of the frame. */
8969
+ region: {
8970
+ x0: number;
8971
+ x1: number;
8972
+ y0: number;
8973
+ y1: number;
8974
+ };
8975
+ }
8976
+ /** The word boxes that sit on a photo — what iox-cms reads the pixels under. */
8977
+ declare function wordsOverPhotos(measured: ReadonlyArray<MeasuredLayout>): PhotoWordsArea[];
8978
+ /** The light under a word box: its mean relative luminance and how much it varies (a busy part of a photo). */
8979
+ interface PixelReading {
8980
+ path: string;
8981
+ viewport: `${LayoutViewport}`;
8982
+ luminance: number;
8983
+ spread: number;
8984
+ }
8985
+ /** The light of a part of a photo (fractions of the PHOTO, RGBA bytes row by row) — what the server reads for each area. */
8986
+ declare function pixelsUnder(rgba: ArrayLike<number>, width: number, height: number, part: {
8987
+ x0: number;
8988
+ x1: number;
8989
+ y0: number;
8990
+ y1: number;
8991
+ }): {
8992
+ luminance: number;
8993
+ spread: number;
8994
+ };
8995
+ /** The prototype's thresholds. */
8996
+ declare const RENDER_CHECK: {
8997
+ /** Overlap counted when it covers more than this many px² AND this share of the smaller word box. */
8998
+ readonly overlapPx: 80;
8999
+ readonly overlapShare: 0.12;
9000
+ /** px past its rows (desktop) before words count as spilling; px past its columns. */
9001
+ readonly spillDown: 10;
9002
+ readonly spillSide: 12;
9003
+ /** The share of the first section's lead the first screen must show. */
9004
+ readonly firstScreen: 0.6;
9005
+ /** WCAG: large words, other words. */
9006
+ readonly contrastLarge: 3;
9007
+ readonly contrastBody: 4.5;
9008
+ /** The light's spread over which a part of a photo is busy. */
9009
+ readonly busy: 0.11;
9010
+ };
9011
+ /** Measured boxes (each viewport) + the pixels under the words on photos → the render issues, by path, said once each. */
9012
+ declare function judgeLayoutRender(measured: ReadonlyArray<MeasuredLayout>, pixels?: ReadonlyArray<PixelReading>): LayoutIssue[];
9013
+
9014
+ /**
9015
+ * Motion ON, judged without playing it (iox-ui#65). A layer at a depth glides against the page while it passes, so two
9016
+ * layers at different depths move toward or away from each other as the page scrolls. The render check measures the page
9017
+ * at rest; this replays the scroll over those boxes with the runtime's own maths (scene-core `parallaxShift` ·
9018
+ * `parallaxRest` · `parallaxOffset`, the `cover` range the composer gives every depth) and says where two of them meet on
9019
+ * screen. The same maths guards the depth mend (`checkLayout`), so a depth the composer adds can never cause one.
9020
+ */
9021
+ /** A box in the page's px, the page's top at 0. */
9022
+ interface DriftBox {
9023
+ l: number;
9024
+ t: number;
9025
+ r: number;
9026
+ b: number;
9027
+ }
9028
+ /** One layer as the scroll sees it: where it stands at rest and the depth it glides at, if any. */
9029
+ interface DriftLayer {
9030
+ box: DriftBox;
9031
+ depth: `${ParallaxDepth}` | null;
9032
+ }
9033
+ /** Where two layers meet as the page scrolls: the scroll (px from the top) where they overlap most, and by how much. */
9034
+ interface DriftMeeting {
9035
+ scroll: number;
9036
+ overlap: DriftBox;
9037
+ area: number;
9038
+ }
9039
+ /** The depth a layer glides at in a section, as the composer stamps it — or null (mid, a held section, what a visitor
9040
+ * operates). ONE rule: `composeLayout` stamps by it, the render check and the depth mend replay by it. */
9041
+ declare function layoutGlideDepth(section: Pick<LayoutSection, 'pin'>, layer: Pick<LayoutLayer, 'depth' | 'kind'>): `${ParallaxDepth}` | null;
9042
+ /** How far a layer at `depth` stands off its place with the page scrolled `scroll` px, on a screen `viewHeight` tall. */
9043
+ declare function driftAt(layer: DriftLayer, scroll: number, viewHeight: number, phone?: boolean): number;
9044
+ /**
9045
+ * Where two layers overlap most on screen while the page scrolls past them, at least one gliding — inside `clip` (their
9046
+ * section, which clips a glide) — or null when they never meet more than they already do at rest. `pageHeight` bounds the
9047
+ * scroll. Pure: the same answer in the browser and the server.
9048
+ */
9049
+ declare function driftOverlap(a: DriftLayer, b: DriftLayer, view: {
9050
+ width: number;
9051
+ height: number;
9052
+ pageHeight: number;
9053
+ phone?: boolean;
9054
+ }, clip?: DriftBox): DriftMeeting | null;
9055
+
9056
+ /** The design a page wears when only its look's preset is known: the preset in `mode` (else its own), else the default. */
9057
+ declare function layoutDesignOf(presetId: string | null | undefined, mode?: string | null): DesignChoices;
9058
+ /** The element style a layer wears, by kind, role and size (the round-four renderer's `elementStyleOf`). */
9059
+ declare function layoutElementStyle(l: Pick<LayoutLayer, 'kind' | 'role' | 'size'>): string;
9060
+ /** How wide a layer's words stand at 1em on one line, in the face its element style wears in `design` (iox-ui#46). */
9061
+ declare function layoutTextWidthEm(l: Pick<LayoutLayer, 'kind' | 'role' | 'size' | 'text'>, design: DesignChoices): number;
9062
+ /** The columns a `screen` word fills: its span, and half a column more for each side it bleeds off. */
9063
+ declare function screenWordColumns(l: Pick<LayoutLayer, 'col' | 'bleed'>): number;
9064
+ /** Where a `screen` word cannot fit even at its smallest size: the screen and by how many px — null when it fits both. */
9065
+ declare function screenWordMisfit(l: LayoutLayer, design: DesignChoices): {
9066
+ width: number;
9067
+ phone: boolean;
9068
+ px: number;
9069
+ } | null;
9070
+
9071
+ /**
9072
+ * SILENT SECTION FALLBACK (Doron, 2026-11-09: "for now we need to do silent section fallback and not fallback whole page").
9073
+ * A composed page that still fails after the mends and its one repair — or after the browser's check — no longer falls
9074
+ * back whole: each section an issue names is given to the plan's READY-MADE section for the same place (the pattern the
9075
+ * whole-page fallback would have stamped there, worn in the same look), or dropped where none fits and the page keeps its
9076
+ * opening and its close. Then the page is judged again, once, exactly like any composed page. Only a page that still
9077
+ * fails — an issue that names no section, a place with nothing to give it, a swap that breaks a section kept or a count
9078
+ * of the page — falls back whole: the last resort, counted. A swap never leads to another swap. The owner sees a composed page; the swaps are recorded for us, the model's sections kept.
9079
+ * Pure: the service and `ai:replay` run this one function.
9080
+ */
9081
+ /** What became of one place of the model's page. */
9082
+ declare enum SectionSwapAction {
9083
+ /** The plan's ready-made section stands there. */
9084
+ Replaced = "replaced",
9085
+ /** Nothing fitted the place: the page goes on without it. */
9086
+ Dropped = "dropped"
9087
+ }
9088
+ /** Why a place was given away (and which ready-made section took it). */
9089
+ declare enum SectionSwapRule {
9090
+ /** The page's first section: always the plan's opening, never dropped. */
9091
+ Opening = "opening",
9092
+ /** The page's last section: always the plan's close, never dropped. */
9093
+ Close = "close",
9094
+ /** A middle section: the ready-made section that shows the same list, holds the form, or says most of its words. */
9095
+ Fit = "fit",
9096
+ /** A middle section no ready-made section fits: dropped. */
9097
+ NoFit = "no-fit"
9098
+ }
9099
+ /** One place swapped, kept for us on the composed record — never shown to the owner. */
9100
+ interface SectionSwap {
9101
+ /** The section's id (links to it keep working when it is replaced). */
9102
+ id: string;
9103
+ /** Its place in the model's page. */
9104
+ at: number;
9105
+ action: `${SectionSwapAction}`;
9106
+ rule: `${SectionSwapRule}`;
9107
+ /** The plan section that took it: its index in `page.sections` and its pattern. */
9108
+ readyMade?: {
9109
+ at: number;
9110
+ pattern: string;
9111
+ };
9112
+ /** What the check said about it. */
9113
+ why: string[];
9114
+ /** The model's section as it stood. */
9115
+ original: LayoutSection;
9116
+ }
9117
+ /** Why a page fell back whole after all (the last resort). */
9118
+ declare enum SectionFallbackLastResort {
9119
+ /** Nothing left names a section (a count, a share, the order of sections), or after the swaps only such an issue is. */
9120
+ PageWide = "page-wide",
9121
+ /** The place named is the opening or the close, and the plan has no ready-made section left for it. */
9122
+ NoReadyMade = "no-ready-made",
9123
+ /** It names a section already given to a ready-made one. */
9124
+ ReadyMadeNamed = "ready-made-named",
9125
+ /** After the swaps, the check names a section the model composed and kept (a neighbour the swap broke). */
9126
+ Neighbour = "neighbour"
9127
+ }
9128
+ interface SectionFallback {
9129
+ /** The page as it now stands (ready-made places marked `readyMade`, dropped ones gone). */
9130
+ page: LayoutPage;
9131
+ swaps: SectionSwap[];
9132
+ /** What is left: empty — the page composes. */
9133
+ left: LayoutIssue[];
9134
+ /** Set when the page must fall back whole after all. */
9135
+ lastResort?: `${SectionFallbackLastResort}`;
9136
+ }
9137
+ /** A judge: the page settled (the mends) and what the gate still finds — static and sameness, as the service checks. */
9138
+ type SectionJudge = (page: LayoutPage) => {
9139
+ page: LayoutPage;
9140
+ issues: LayoutIssue[];
9141
+ };
9142
+ /** The sections an issue names: its path's, and any its words name. */
9143
+ declare function sectionsNamed(issue: Pick<LayoutIssue, 'path' | 'message'>): number[];
9144
+ /**
9145
+ * Give every section the issues name to the plan's ready-made section for its place, or drop it, then judge the page once
9146
+ * more (a page-wide issue beside them may be cured by the swap — the judge says). `plan` is the page's ready-made
9147
+ * sections (`PagePlan.sections`), in order; `issues` what is left after the mends and the one repair.
9148
+ */
9149
+ declare function fallBackBySection(page: LayoutPage, plan: ReadonlyArray<PageSectionPlan>, issues: ReadonlyArray<LayoutIssue>, judge: SectionJudge): SectionFallback;
9150
+
9151
+ /**
9152
+ * Where the composed pages' photos come from (M8-G2-D10 — the Plan step's Pictures line: "Your 4 photos go first · 8 from
9153
+ * your photo library · 0 empty boxes"): every distinct photo id the plan's composed layouts name, by source. Pure.
9154
+ */
9155
+ declare function planLayoutPhotos(plan: Pick<SitePlan, 'pages'>): Record<LayoutPhotoSource, string[]>;
9156
+
9157
+ /**
9158
+ * THE PHOTO INVENTORY (premium components M8 gate 2, §5; the prototype's `code/inventory.cjs`, made pure): what a layout
9159
+ * may know about a photo without seeing it — its shape, five main colours, and a 12×12 grid of how light and how busy each
9160
+ * part is. iox-cms decodes the pixels (sharp → RGBA) and calls `photoInventory`; `checkLayout` reads the grid through
9161
+ * `calmUnder` to judge words set over the part of the photo a frame SHOWS; the model reads `describeInventoryForPrompt`.
9162
+ * No DOM, no decoder: RGBA bytes in, numbers out, deterministic.
9163
+ */
9164
+ declare enum PhotoTone {
9165
+ Light = "light",
9166
+ Dark = "dark"
9167
+ }
9168
+ interface PhotoInventory {
9169
+ shape: `${LayoutPhotoShape}`;
9170
+ width: number;
9171
+ height: number;
9172
+ grid: {
9173
+ cols: number;
9174
+ rows: number;
9175
+ /** Each cell's mean WCAG relative luminance (linear light), row by row. */
9176
+ luminance: number[];
9177
+ /** Each cell's mean |Laplacian| of its gamma-encoded luma (edges and texture), row by row; 0 is a flat field. */
9178
+ detail: number[];
9179
+ };
9180
+ /** Up to five main colours (`#rrggbb`), the most of the picture first; fewer when the picture holds fewer. */
9181
+ colours: string[];
9182
+ tone: `${PhotoTone}`;
9183
+ }
9184
+ /** A region of a frame, as fractions of its width (x) and height (y). */
9185
+ interface FrameRegion {
9186
+ x0: number;
9187
+ y0: number;
9188
+ x1: number;
9189
+ y1: number;
9190
+ }
9191
+ interface CalmReading {
9192
+ calm: boolean;
9193
+ tone: `${PhotoTone}`;
9194
+ /** The region's mean relative luminance (what a colour over it is measured against). */
9195
+ luminance: number;
9196
+ /** The region's mean detail. */
9197
+ detail: number;
9198
+ }
9199
+ declare const PHOTO_GRID = 12;
9200
+ /** Pixels are averaged down to this width before they are measured: the prototype measured at 96 wide, and the calm
9201
+ * threshold below was read off its 35 proof photos at that scale (a Laplacian grows with resolution). */
9202
+ declare const PHOTO_ANALYSIS_WIDTH = 96;
9203
+ /** Calm: the mean detail under the words is at most this. The prototype's absolute bar (0.045 at 96 px wide: the busiest
9204
+ * cell it called calm across the proof photos); its relative bar (≤ 0.55 × the photo's busiest cell) is not ported —
9205
+ * it called nothing calm on a photo that is flat everywhere. */
9206
+ declare const PHOTO_CALM_DETAIL = 0.045;
9207
+ /** Light: above the luminance where black and white words have the same contrast (√(1.05 × 0.05) − 0.05). */
9208
+ declare const PHOTO_LIGHT_LUMINANCE = 0.179;
9209
+ /** A photo's shape from its size. */
9210
+ declare function photoShapeOf(width: number, height: number): LayoutPhotoShape;
9211
+ declare const toneOf: (luminance: number) => PhotoTone;
9212
+ /** What a photo is, measured from its pixels (RGBA bytes, row by row). */
9213
+ declare function photoInventory(rgba: Uint8ClampedArray | Uint8Array, width: number, height: number): PhotoInventory;
9214
+ /** The part of the photo a frame region shows under `object-fit: cover` (centred): the frame crops the photo's longer side. */
9215
+ declare function coverCrop(inv: Pick<PhotoInventory, 'width' | 'height'>, frame: {
9216
+ w: number;
9217
+ h: number;
9218
+ }, region: FrameRegion): FrameRegion;
9219
+ /**
9220
+ * Whether words over `region` of a frame (fractions of the FRAME, which shows the photo as `object-fit: cover`, centred)
9221
+ * sit on a calm part of the photo, and how light it is there. A calm band the crop cuts away is not under the words.
9222
+ */
9223
+ declare function calmUnder(inv: PhotoInventory, frame: {
9224
+ w: number;
9225
+ h: number;
9226
+ }, region: FrameRegion): CalmReading;
9227
+ /** The photo's 3×3 named parts that are calm, each light or dark (`top-start (dark)`). */
9228
+ declare function calmParts(inv: PhotoInventory): string[];
9229
+ /** One line a model reads instead of the photo: its id, what it shows, shape, colours and where words may sit. */
9230
+ declare function describeInventoryForPrompt(id: string, inv: PhotoInventory, label?: string): string;
9231
+
9232
+ interface CheckLayoutContext {
9233
+ presetId: string;
9234
+ mode: 'light' | 'dark';
9235
+ locale: 'en' | 'he';
9236
+ /** Every photo the page may use: its inventory, or null when it was not measured (words never sit on it). */
9237
+ photos: Record<string, PhotoInventory | null>;
9238
+ /** The list data sources a gallery may show (`gallery.source`). */
9239
+ sources?: string[];
9240
+ /** Every list the plan has (`layoutGalleryLists`): a gallery naming one without pictures is mended to one with them. */
9241
+ lists?: ReadonlyArray<LayoutGalleryList>;
9242
+ /** The site's page routes a button may lead to (`/contact`). */
9243
+ routes?: string[];
9244
+ /** Every word the owner gave and what was read from it: a number not in here was invented. */
9245
+ facts?: string;
9246
+ /** The fact keys a `{fact:<key>}` token may name (default: the contract's `site.facts`). */
9247
+ factKeys?: string[];
9248
+ /** The business takes leads (the lead form is offered). */
9249
+ takesLeads?: boolean;
9250
+ /** This is the home page: it must offer a way to reach the business. */
9251
+ first?: boolean;
9252
+ /** The design the page will wear: its fonts decide whether a `screen` word fits (iox-ui#46). Default: the preset's. */
9253
+ design?: DesignChoices;
9254
+ }
9255
+ type LayoutColours = Readonly<Record<LayoutColour, string>>;
9256
+ /** A preset's five colours in a mode as `#rrggbb` (the prototype's `presetColours`), or null when it does not wear that mode. */
9257
+ declare function layoutPresetColours(presetId: string, mode: 'light' | 'dark'): LayoutColours | null;
9258
+ /**
9259
+ * The laptop the estimates are made on (the render check's 1440 × 900). A grid column is taken as 1440 / 12 px and a row
9260
+ * as its section's screens × 900 / rows (a held section's grid is its one-screen stage): the gutter and the column gaps
9261
+ * are left out, so a box reads about a fifth wider than it renders — the render check measures the real one.
9262
+ */
9263
+ declare const LAYOUT_CHECK_VIEWPORT: {
9264
+ readonly width: 1440;
9265
+ readonly height: 900;
9266
+ };
9267
+ /** A section of one photo on one side and words on the other: 'start' | 'end' | null (the prototype's `splitSide`). */
9268
+ declare function splitSide(s: LayoutSection): 'start' | 'end' | null;
9269
+ /** Every photo id a page names: photo layers, gallery slides, photo grounds. */
9270
+ declare function layoutPhotoIds(page: LayoutPage): string[];
9271
+ /** Every rule a composed page keeps, each refused with a path. Empty means it passes. */
9272
+ declare function checkLayout(page: LayoutPage, ctx: CheckLayoutContext): LayoutIssue[];
9273
+ /**
9274
+ * M8-G2-D12 — what a look switch costs a composed page: the issues the check finds in the new look (`ctx`) at a place
9275
+ * where the look it was composed for (`from`) found none of that kind. Nothing to say → []; the page's own known misses
9276
+ * (in both looks) are never blamed on the switch.
9277
+ */
9278
+ declare function layoutLookChanges(page: LayoutPage, ctx: CheckLayoutContext, from: Pick<CheckLayoutContext, 'presetId' | 'mode'>): LayoutIssue[];
9279
+ /** The longest a time entrance plays. */
9280
+ declare const LAYOUT_ENTRANCE_MAX_MS = 1200;
9281
+ /** The scale an action starts from, where it is not 1 (iox-ui `buildInteractionKeyframes`; held equal by the spec). */
9282
+ declare const ACTION_START_SCALE: Readonly<Record<string, number>>;
9283
+ /** Emil's rules a composed page's nodes can be held to without running them: eases, `transition: all`, scale, entrance length. */
9284
+ declare function auditLayoutMotion(nodes: ReadonlyArray<SerializedNode>): LayoutIssue[];
9285
+ /**
9286
+ * What the composer settles by itself before the model is asked to repair (M8 gate 2, found by the live run: the real
9287
+ * model's repair missed 4.43:1 against 4.5:1 and a third accent where two are allowed): words over a busy or too-light part
9288
+ * of a photo get the scrim the look allows; words too faint on their ground go back to the ink where the ink holds there;
9289
+ * decoration that enters with a move fades instead; the accent leaves the least important words (decoration, then
9290
+ * support, later sections first) until the look's count holds, and where the words cannot give enough back, the least
9291
+ * important accent bands take the ground nearest the accent their words read on (never the first band, the main call to
9292
+ * action's or a form's); and where fewer layers glide than the look asks, the most important layers that may glide take a
9293
+ * depth (back) — exactly as many as are missing, or none (iox-ui#63); a gallery naming a list with no pictures shows a list
9294
+ * that has them — the only one, else the one the section's words name, else the first (iox-ui#64; none, or words that name
9295
+ * the list it named: the model's — #66). No
9296
+ * word, place or photo changes and a button is never touched; what cannot be settled this way is the model's. Pure: a new page and the issues it settled.
9297
+ */
9298
+ declare function mendLayout(page: LayoutPage, issues: ReadonlyArray<LayoutIssue>): {
9299
+ page: LayoutPage;
9300
+ mended: LayoutIssue[];
9301
+ };
9302
+
9303
+ /**
9304
+ * THE CROSS-SITE FINGERPRINT (premium components M8 gate 2, M8-G2-D7; the prototype's `fingerprint` + `sameness`,
9305
+ * `code/cl2.mjs`): what makes two composed pages read as the same — how the page opens, the sequence of its sections, the
9306
+ * mechanism of its signature, whether it opens light or dark, and the preset it wears. Structure only: no words, no
9307
+ * business data. Round three found that pages composed alone converge on one skeleton, and that telling the model what
9308
+ * already exists is what broke it. Pure.
9309
+ */
9310
+ /** How a section reads in the page's sequence (the contract's `sequenceTokens`). */
9311
+ declare enum LayoutSequenceToken {
9312
+ Inhale = "inhale",
9313
+ Sideways = "sideways",
9314
+ HeldWords = "held-words",
9315
+ HeldReel = "held-reel",
9316
+ Held = "held",
9317
+ PhotoGround = "photo-ground",
9318
+ Gallery = "gallery",
9319
+ Split = "split",
9320
+ Composition = "composition"
9321
+ }
9322
+ /** The signature mechanisms (the contract's `signatures`); `held-screen` is the fallback, never the aim. */
9323
+ declare enum LayoutSignatureId {
9324
+ WordsLit = "words-lit",
9325
+ PhotoUnveiled = "photo-unveiled",
9326
+ ZoomThrough = "zoom-through",
9327
+ ScrollReel = "scroll-reel",
9328
+ PicturesStacking = "pictures-stacking",
9329
+ HalvesApart = "halves-apart",
9330
+ SidewaysWalk = "sideways-walk",
9331
+ ObjectTurning = "object-turning",
9332
+ HeldScreen = "held-screen"
9333
+ }
9334
+ interface LayoutFingerprint {
9335
+ /** What the lead of the first section is: `screen-word`, `photo`, `gallery`, or `<size>-<kind>` (`xl-heading`). */
9336
+ opening: string;
9337
+ sequence: string[];
9338
+ signature: string;
9339
+ ground: `${PhotoTone}`;
9340
+ preset: string;
9341
+ }
9342
+ interface FingerprintedPage {
9343
+ name: string;
9344
+ fingerprint: LayoutFingerprint;
9345
+ businessType?: string;
9346
+ /** A demo (the proof sites): its opening and signature are not to be repeated, its order of sections may be. */
9347
+ demo?: boolean;
9348
+ }
9349
+ /** A section's token in the page's sequence. */
9350
+ declare function sequenceTokenOf(s: LayoutSection): LayoutSequenceToken;
9351
+ declare function signatureOf(s: LayoutSection | undefined): LayoutSignatureId;
9352
+ /** A place given to the plan's ready-made section (silent section fallback): its token in the sequence and the opening. */
9353
+ declare const LAYOUT_READY_MADE_TOKEN = "ready-made";
9354
+ /** A page's fingerprint, worn in `preset` and `mode`. A photo ground opens on the page's own ground colour. */
9355
+ declare function fingerprintOf(page: LayoutPage, preset: string, mode: 'light' | 'dark'): LayoutFingerprint;
9356
+ /** The share of the longer sequence two pages have in common. */
9357
+ declare function sequenceShare(a: ReadonlyArray<string>, b: ReadonlyArray<string>): number;
9358
+ /**
9359
+ * Refuses a page that repeats one already made (M8-G2-D7): most of the same sequence (`SPEC_SITE_LAYOUT.sameness.sequence`,
9360
+ * 6 of 7), or the same opening AND signature; against a page of the same business type, the same opening or the same
9361
+ * signature alone. The sequence is compared with real pages only — this studio's, other studios', this site's — never a
9362
+ * demo's (Doron, 2026-11-09: the proof sites' order is the product's grammar, not someone's site). The look is the
9363
+ * owner's pick and is never a reason.
9364
+ */
9365
+ declare function samenessIssues(me: LayoutFingerprint, others: ReadonlyArray<FingerprintedPage>, businessType?: string): LayoutIssue[];
9366
+ /** The three proof sites' fingerprints (premium M8): every new page's opening and signature are compared with them, never
9367
+ * its order of sections (`demo`). layout-fingerprint.spec holds them equal to `fingerprintOf` of the proof layouts. */
9368
+ declare const PROOF_FINGERPRINTS: ReadonlyArray<FingerprintedPage>;
9369
+
9370
+ /**
9371
+ * THE LAYOUT REPAIR (premium components M8 gate 2, §4.1; the prototype's `applyEdits`, `code/cl2.mjs`): a refused page
9372
+ * comes back as a few path edits instead of the whole page — the paths `checkLayout` names (`sections[2].layers[1].col`).
9373
+ * The strict format carries every value as JSON text (one string type, no unions); a value that is not JSON is a plain
9374
+ * string. Pure: the page given is never changed.
9375
+ */
9376
+ declare enum LayoutEditOp {
9377
+ Set = "set",
9378
+ Remove = "remove",
9379
+ Insert = "insert"
9380
+ }
9381
+ interface LayoutEdit {
9382
+ op: `${LayoutEditOp}`;
9383
+ /** Relative to the page: `sections[2].layers[1].col`. */
9384
+ path: string;
9385
+ /** The new value as JSON text (`[3, 7]`, `"xl"`, `{"kind": "label", …}`); '' for a remove. */
9386
+ value: string;
9387
+ }
9388
+ /** A path's steps: object keys and array indexes (`sections[2].phone` → ['sections', 2, 'phone']). */
9389
+ declare function layoutPathSteps(path: string): Array<string | number>;
9390
+ /** Applies the edits in order. An edit that cannot apply is skipped and named (`edits[3]`); the rest still apply. */
9391
+ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutEdit>): {
9392
+ page: LayoutPage;
9393
+ issues: LayoutIssue[];
9394
+ };
9395
+ /** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
9396
+ declare function layoutRepairJsonSchema(): JsonSchema;
9397
+
9398
+ export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutElementStyle, layoutFormScheme, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutTextWidthEm, layoutToWire, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
9399
+ export type { AddBarItemResult, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };