import type { AsCell, Cell, KeyResultType } from "../index.ts"; type ReactionCell = Cell<{ type: Cell; count: Cell; }>; type PostCell = Cell<{ id: Cell; content: Cell; metadata: Cell<{ createdAt: Cell; reactions: Cell>; history: Cell< Array< Cell<{ version: Cell; summary: Cell; }> > >; }>; }>; type AddressCell = Cell<{ street: Cell; city: Cell; coordinates: Cell<{ lat: Cell; lng: Cell; }>; }>; type ProfileCell = Cell<{ displayName: Cell; biography: Cell; addresses: Cell>; preferences: Cell<{ notifications: Cell<{ email: Cell; push: Cell; sms: Cell; }>; theme: Cell; }>; }>; type ComplexCellValue = { profile: ProfileCell; posts: Cell>; stats: Cell<{ followers: Cell; following: Cell; tags: Cell>>; }>; misc: Cell<{ flags: Cell>>; lastUpdated: Cell; }>; }; type ComplexCell = Cell; type LiteralKeys = { profile: KeyResultType; posts: KeyResultType; stats: KeyResultType; miscFlags: KeyResultType< Cell<{ misc: ComplexCellValue["misc"] }>, "misc", AsCell >; }; type UnionKeys = KeyResultType; type FallbackKeys = KeyResultType; type SymbolKeys = KeyResultType; type PropertyKeyAccess = KeyResultType; type NestedProfiles = KeyResultType< Cell<{ users: Cell< Array< Cell<{ profile: ProfileCell; posts: Cell>; }> > >; }>, "users", AsCell >; type Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"; type StressLiteral = | keyof ComplexCellValue | `alias_${keyof ComplexCellValue & string}` | `shadow_${Digit}${Digit}` | `custom_${Digit}${Digit}`; type StressRecordCell = Cell<{ [K in StressLiteral]: ComplexCellValue }>; type StressMatrix = { [K in StressLiteral]: { direct: KeyResultType; spread: KeyResultType; cross: { [P in StressLiteral]: KeyResultType< Cell<{ primary: ComplexCellValue; secondary: ComplexCellValue; registry: Record; }>, K | P | "primary" | "secondary" | "registry", AsCell >; }; }; }; type StressCrossUnion = StressMatrix[keyof StressMatrix]["cross"][keyof StressMatrix]; type StressSummary = { entries: StressCrossUnion; mapped: { [K in StressLiteral]: KeyResultType< Cell>, K, AsCell >; }; fallback: KeyResultType< ComplexCell, StressLiteral | `${StressLiteral & string}_fallback`, AsCell >; };