@adelin-io/cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -2
- package/authoring-release.json +174 -0
- package/package.json +30 -4
- package/runtime-integrity.json +9 -0
- package/scripts/adelin.mjs +7768 -0
- package/scripts/assemble-checkout.mjs +93 -0
- package/scripts/local-save.mjs +513 -0
- package/scripts/materialize.mjs +319 -0
- package/scripts/runtime.mjs +8950 -0
- package/scripts/typecheck.mjs +72 -0
- package/scripts/workspace-state.mjs +183 -0
- package/skill/README.md +77 -0
- package/skill/SKILL.md +100 -0
- package/skill/authoring/access.md +193 -0
- package/skill/authoring/analytics.md +20 -0
- package/skill/authoring/app-memory.md +128 -0
- package/skill/authoring/app-requirements.md +99 -0
- package/skill/authoring/app-structure.md +265 -0
- package/skill/authoring/assets.md +117 -0
- package/skill/authoring/auth.md +261 -0
- package/skill/authoring/content-binding.md +26 -0
- package/skill/authoring/i18n.md +184 -0
- package/skill/authoring/language.md +503 -0
- package/skill/authoring/local-workflow.md +1665 -0
- package/skill/authoring/offline/connectivity.md +50 -0
- package/skill/authoring/offline/example.md +102 -0
- package/skill/authoring/offline/history-sync.md +39 -0
- package/skill/authoring/offline/index.md +29 -0
- package/skill/authoring/offline/package-storage.md +37 -0
- package/skill/authoring/offline/platforms.md +35 -0
- package/skill/authoring/offline/startup-navigation.md +53 -0
- package/skill/authoring/platform-files.md +616 -0
- package/skill/authoring/player/casting.md +47 -0
- package/skill/authoring/player/controls.md +95 -0
- package/skill/authoring/player/downloads.md +90 -0
- package/skill/authoring/player/drm.md +31 -0
- package/skill/authoring/player/index.md +39 -0
- package/skill/authoring/player/live-dvr.md +33 -0
- package/skill/authoring/player/platforms.md +47 -0
- package/skill/authoring/player/playback.md +42 -0
- package/skill/authoring/player/tracks-subtitles.md +32 -0
- package/skill/authoring/profiles.md +213 -0
- package/skill/authoring/remote-keys.md +139 -0
- package/skill/authoring/search.md +27 -0
- package/skill/authoring/store.md +85 -0
- package/skill/authoring/tv-text-entry.md +146 -0
- package/skill/design/approved/README.md +14 -0
- package/skill/design/approved/vesper-phone-home.jpg +0 -0
- package/skill/design/approved/vesper-tv-detail.jpg +0 -0
- package/skill/design/approved/vesper-tv-home.jpg +0 -0
- package/skill/design/design-guide.md +610 -0
- package/skill/design/edge-to-edge.md +66 -0
- package/skill/design/icons.md +50 -0
- package/skill/design/responsive-layout.md +175 -0
- package/skill/design/safe-area.md +221 -0
- package/skill/design/streaming-playbook.md +131 -0
- package/skill/design/visual-review.md +150 -0
- package/skill/examples/README.md +24 -0
- package/skill/examples/cinema/DESIGN.md +58 -0
- package/skill/examples/cinema/app.tsx +17 -0
- package/skill/examples/cinema/assets/logo.png +0 -0
- package/skill/examples/cinema/components/Action.tsx +40 -0
- package/skill/examples/cinema/components/Action.tv.tsx +44 -0
- package/skill/examples/cinema/components/CatalogGrid.tsx +31 -0
- package/skill/examples/cinema/components/ContinueRail.tsx +98 -0
- package/skill/examples/cinema/components/Feedback.tsx +28 -0
- package/skill/examples/cinema/components/Field.tsx +41 -0
- package/skill/examples/cinema/components/LibraryRail.tsx +46 -0
- package/skill/examples/cinema/components/PlayAction.tsx +29 -0
- package/skill/examples/cinema/components/Root.tsx +59 -0
- package/skill/examples/cinema/components/Shell.tsx +70 -0
- package/skill/examples/cinema/components/Tab.tsx +22 -0
- package/skill/examples/cinema/components/TitleCard.tsx +68 -0
- package/skill/examples/cinema/components/TitleMeta.tsx +36 -0
- package/skill/examples/cinema/locales/en.ts +211 -0
- package/skill/examples/cinema/locales/lt.ts +211 -0
- package/skill/examples/cinema/preview/phone-home.jpg +0 -0
- package/skill/examples/cinema/preview/tv-detail.jpg +0 -0
- package/skill/examples/cinema/preview/tv-home.jpg +0 -0
- package/skill/examples/cinema/screens/portrait/Account.tsx +110 -0
- package/skill/examples/cinema/screens/portrait/Browse.tsx +73 -0
- package/skill/examples/cinema/screens/portrait/Detail.tsx +159 -0
- package/skill/examples/cinema/screens/portrait/Home.tsx +196 -0
- package/skill/examples/cinema/screens/portrait/Player.tsx +299 -0
- package/skill/examples/cinema/screens/portrait/Search.tsx +46 -0
- package/skill/examples/cinema/screens/portrait/Search.tv.tsx +55 -0
- package/skill/examples/cinema/screens/portrait/SignIn.tsx +101 -0
- package/skill/examples/cinema/screens/portrait/SignUp.tsx +106 -0
- package/skill/examples/cinema/store.tsx +132 -0
- package/skill/examples/cinema/theme.ts +32 -0
- package/skill/examples/documentary/DESIGN.md +33 -0
- package/skill/examples/documentary/app.tsx +17 -0
- package/skill/examples/documentary/components/Action.tsx +43 -0
- package/skill/examples/documentary/components/CatalogGrid.tsx +47 -0
- package/skill/examples/documentary/components/Feedback.tsx +27 -0
- package/skill/examples/documentary/components/Field.tsx +33 -0
- package/skill/examples/documentary/components/LibraryRail.tsx +47 -0
- package/skill/examples/documentary/components/Root.tsx +62 -0
- package/skill/examples/documentary/components/Shell.tsx +93 -0
- package/skill/examples/documentary/components/StoryCard.tsx +53 -0
- package/skill/examples/documentary/components/StoryMeta.tsx +22 -0
- package/skill/examples/documentary/preview/phone-home.jpg +0 -0
- package/skill/examples/documentary/preview/tv-detail.jpg +0 -0
- package/skill/examples/documentary/preview/tv-home.jpg +0 -0
- package/skill/examples/documentary/screens/portrait/Account.tsx +97 -0
- package/skill/examples/documentary/screens/portrait/Browse.tsx +71 -0
- package/skill/examples/documentary/screens/portrait/Detail.tsx +133 -0
- package/skill/examples/documentary/screens/portrait/Home.tsx +89 -0
- package/skill/examples/documentary/screens/portrait/Player.tsx +116 -0
- package/skill/examples/documentary/screens/portrait/Search.tsx +48 -0
- package/skill/examples/documentary/screens/portrait/SignIn.tsx +96 -0
- package/skill/examples/documentary/screens/portrait/SignUp.tsx +101 -0
- package/skill/examples/documentary/store.tsx +115 -0
- package/skill/examples/documentary/theme.ts +20 -0
- package/skill/examples/series/DESIGN.md +55 -0
- package/skill/examples/series/app.tsx +17 -0
- package/skill/examples/series/components/Action.tsx +42 -0
- package/skill/examples/series/components/CatalogGrid.tsx +43 -0
- package/skill/examples/series/components/ContinueRail.tsx +78 -0
- package/skill/examples/series/components/Feedback.tsx +26 -0
- package/skill/examples/series/components/Field.tsx +34 -0
- package/skill/examples/series/components/LibraryRail.tsx +38 -0
- package/skill/examples/series/components/OutcomeNote.tsx +28 -0
- package/skill/examples/series/components/PlayAction.tsx +29 -0
- package/skill/examples/series/components/RestoreAction.tsx +33 -0
- package/skill/examples/series/components/Root.tsx +75 -0
- package/skill/examples/series/components/SaveTitle.tsx +34 -0
- package/skill/examples/series/components/Shell.tsx +75 -0
- package/skill/examples/series/components/TitleCard.tsx +62 -0
- package/skill/examples/series/components/UnlockAction.tsx +10 -0
- package/skill/examples/series/preview/phone-home.jpg +0 -0
- package/skill/examples/series/preview/tv-detail.jpg +0 -0
- package/skill/examples/series/preview/tv-home.jpg +0 -0
- package/skill/examples/series/screens/portrait/Account.tsx +125 -0
- package/skill/examples/series/screens/portrait/Browse.tsx +61 -0
- package/skill/examples/series/screens/portrait/Detail.tsx +231 -0
- package/skill/examples/series/screens/portrait/Home.tsx +109 -0
- package/skill/examples/series/screens/portrait/MyList.tsx +44 -0
- package/skill/examples/series/screens/portrait/Plans.tsx +131 -0
- package/skill/examples/series/screens/portrait/Player.tsx +138 -0
- package/skill/examples/series/screens/portrait/Profiles.tsx +103 -0
- package/skill/examples/series/screens/portrait/Search.tsx +50 -0
- package/skill/examples/series/screens/portrait/SignIn.tsx +94 -0
- package/skill/examples/series/screens/portrait/SignUp.tsx +100 -0
- package/skill/examples/series/store.tsx +192 -0
- package/skill/examples/series/theme.ts +32 -0
- package/skill/guides/final-pricing-capabilities.md +13 -0
- package/skill/reference/api.md +842 -0
- package/skill/reference/components.md +1782 -0
- package/skill/reference/packages.md +24 -0
- package/skill/scripts/assemble-checkout.mjs +93 -0
- package/skill/scripts/local-save.mjs +513 -0
- package/skill/scripts/materialize.mjs +319 -0
- package/skill/scripts/workspace-state.mjs +183 -0
- package/types/adelin-access.d.ts +70 -0
- package/types/adelin-analytics.d.ts +5 -0
- package/types/adelin-assets.d.ts +26 -0
- package/types/adelin-auth.d.ts +37 -0
- package/types/adelin-content.d.ts +112 -0
- package/types/adelin-device.d.ts +195 -0
- package/types/adelin-downloads.d.ts +47 -0
- package/types/adelin-env.d.ts +8 -0
- package/types/adelin-globals.d.ts +19 -0
- package/types/adelin-i18n.d.ts +31 -0
- package/types/adelin-native-stack.d.ts +178 -0
- package/types/adelin-navigation.d.ts +264 -0
- package/types/adelin-profiles.d.ts +51 -0
- package/types/adelin-react.d.ts +49 -0
- package/types/adelin-reanimated.d.ts +376 -0
- package/types/adelin-storage.d.ts +9 -0
- package/types/adelin-store.d.ts +74 -0
- package/types/adelin-ui.d.ts +1518 -0
- package/types/adelin-utils.d.ts +7 -0
- package/types/adelin-worklets.d.ts +15 -0
- package/workspace-tsconfig.json +53 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// The content platform API and the bound-value types other `@adelin/*` modules reuse.
|
|
2
|
+
declare module "@adelin/content" {
|
|
3
|
+
/** A bound list; Array<any> gives callback params an explicit `any`, never an implicit one. */
|
|
4
|
+
export interface DialectList extends Array<any> {}
|
|
5
|
+
/** A bound value usable as a string or as a list. */
|
|
6
|
+
export type DialectValue = DialectList & string;
|
|
7
|
+
export interface ContentArtwork {
|
|
8
|
+
poster?: string;
|
|
9
|
+
backdrop?: string;
|
|
10
|
+
/** The title logo at its stored pixel size; size its box from `width / height`. */
|
|
11
|
+
logo?: { uri: string; width: number; height: number };
|
|
12
|
+
}
|
|
13
|
+
export interface ContentPlaybackSource {
|
|
14
|
+
uri: string;
|
|
15
|
+
type: "hls";
|
|
16
|
+
identity: string;
|
|
17
|
+
/** WebVTT index of scrub thumbnails; the player and its thumbnail views read it themselves. */
|
|
18
|
+
thumbnails?: string;
|
|
19
|
+
/** The item's subtitle files; the player lists them in `player.subtitleTracks`. */
|
|
20
|
+
subtitles?: { uri: string; language: string }[];
|
|
21
|
+
}
|
|
22
|
+
/** Scrub thumbnails Adelin made while transcoding: one frame every `intervalSeconds`. */
|
|
23
|
+
export interface ContentThumbnails {
|
|
24
|
+
intervalSeconds: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ContentAudioTrack {
|
|
29
|
+
language: string | null;
|
|
30
|
+
channels: number;
|
|
31
|
+
codec: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ContentVideoTechnical {
|
|
34
|
+
duration: number;
|
|
35
|
+
resolution: string;
|
|
36
|
+
aspectRatio: string;
|
|
37
|
+
hdr: boolean;
|
|
38
|
+
frameRate: number | null;
|
|
39
|
+
audioTracks: ContentAudioTrack[];
|
|
40
|
+
}
|
|
41
|
+
export interface ContentAudioTechnical {
|
|
42
|
+
duration: number;
|
|
43
|
+
channels: number;
|
|
44
|
+
sampleRate: number;
|
|
45
|
+
audioTracks: ContentAudioTrack[];
|
|
46
|
+
}
|
|
47
|
+
export interface ContentLiveState {
|
|
48
|
+
entryId: string;
|
|
49
|
+
state: "live" | "offline";
|
|
50
|
+
broadcastId: string | null;
|
|
51
|
+
announcement: { startsAt: string; timeZone: string } | null;
|
|
52
|
+
}
|
|
53
|
+
/** One title's access, decided by the server; `@adelin/access` re-exports it. */
|
|
54
|
+
export interface ContentItemAccess {
|
|
55
|
+
readonly open: boolean;
|
|
56
|
+
readonly level: "free" | "sign_in" | "paid";
|
|
57
|
+
readonly reason: "sign_in" | "paid" | "rental_expired" | null;
|
|
58
|
+
/** Offers that would open it. */
|
|
59
|
+
readonly offerIds: readonly string[];
|
|
60
|
+
/** When a rental or plan that opens it ends. */
|
|
61
|
+
readonly endsAt: string | null;
|
|
62
|
+
}
|
|
63
|
+
/** Fixed delivered fields stay typed; schema-specific custom fields live under fields. */
|
|
64
|
+
export interface ContentItem<Fields = Record<string, unknown>> {
|
|
65
|
+
id: string;
|
|
66
|
+
kind: "folder" | "item";
|
|
67
|
+
mediaType: "video" | "audio" | "live" | null;
|
|
68
|
+
parentId: string | null;
|
|
69
|
+
position: number;
|
|
70
|
+
title: string;
|
|
71
|
+
description: string;
|
|
72
|
+
label: string | null;
|
|
73
|
+
fields: Fields;
|
|
74
|
+
technical: ContentVideoTechnical | ContentAudioTechnical | null;
|
|
75
|
+
thumbnails: ContentThumbnails | null;
|
|
76
|
+
mainAssetId: string | null;
|
|
77
|
+
trailerAssetId: string | null;
|
|
78
|
+
artwork: ContentArtwork;
|
|
79
|
+
subtitles: { language: string; target: "main" | "trailer"; path: string }[];
|
|
80
|
+
live?: ContentLiveState;
|
|
81
|
+
mediaState?: "missing" | "processing" | "error" | "unavailable" | "ready";
|
|
82
|
+
playbackAvailable?: boolean;
|
|
83
|
+
playbackSource?: ContentPlaybackSource;
|
|
84
|
+
/** The viewer's access to this title; absent means open. */
|
|
85
|
+
access?: ContentItemAccess;
|
|
86
|
+
}
|
|
87
|
+
export interface ContentCollection {
|
|
88
|
+
id: string;
|
|
89
|
+
parentId: string | null;
|
|
90
|
+
name: string;
|
|
91
|
+
note: string;
|
|
92
|
+
entryIds: string[];
|
|
93
|
+
artwork: { poster?: string; backdrop?: string };
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export const content: {
|
|
97
|
+
/** Loads the app's content rows. */
|
|
98
|
+
list(): Promise<ContentItem[]>;
|
|
99
|
+
collections(): Promise<ContentCollection[]>;
|
|
100
|
+
};
|
|
101
|
+
/** What `useSearch` returns. Show your default list while `active` is false. */
|
|
102
|
+
export interface SearchState<T> {
|
|
103
|
+
/** Rows matching the settled query, best title matches first; empty while `active` is false. */
|
|
104
|
+
results: T[];
|
|
105
|
+
/** True once a non-empty query has settled. */
|
|
106
|
+
active: boolean;
|
|
107
|
+
/** True while the typed query has not settled yet. */
|
|
108
|
+
pending: boolean;
|
|
109
|
+
}
|
|
110
|
+
/** Debounced title search over `source`: each query word starts a title word; case and accents are ignored. */
|
|
111
|
+
export function useSearch<T extends { title: string }>(source: readonly T[], query: string): SearchState<T>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
// Remote keys, the back button and the device for an Adelin workspace.
|
|
2
|
+
declare module "@adelin/device" {
|
|
3
|
+
export interface ConnectivityState { readonly state:'online'|'offline'|'unknown' }
|
|
4
|
+
export interface AppModeState { readonly mode:'online'|'offline'; readonly offlineAvailable:boolean }
|
|
5
|
+
export interface AppModeResult { readonly outcome:'switched'|'unavailable'|'failed' }
|
|
6
|
+
/** Observes the connection without adding UI or changing navigation. */
|
|
7
|
+
export function useConnectivity():ConnectivityState;
|
|
8
|
+
export function useAppMode():AppModeState;
|
|
9
|
+
export const appMode:{switchTo(mode:'online'|'offline'):Promise<AppModeResult>};
|
|
10
|
+
/** Platform limits; false where the platform cannot change playback speed or video fit. */
|
|
11
|
+
export const capabilities: { readonly player: { readonly rate: boolean; readonly resizeMode: boolean } };
|
|
12
|
+
export const Platform: {
|
|
13
|
+
select<T>(cases: { android?: T; ios?: T; web?: T; webTV?: T; webBased?: T; tv?: T; native?: T; default?: T }): T;
|
|
14
|
+
};
|
|
15
|
+
export type KeyName =
|
|
16
|
+
| "left"
|
|
17
|
+
| "right"
|
|
18
|
+
| "up"
|
|
19
|
+
| "down"
|
|
20
|
+
| "select"
|
|
21
|
+
| "back"
|
|
22
|
+
| "menu"
|
|
23
|
+
| "playPause"
|
|
24
|
+
| "play"
|
|
25
|
+
| "pause"
|
|
26
|
+
| "stop"
|
|
27
|
+
| "record"
|
|
28
|
+
| "fastForward"
|
|
29
|
+
| "rewind"
|
|
30
|
+
| "volumeUp"
|
|
31
|
+
| "volumeDown"
|
|
32
|
+
| "mute"
|
|
33
|
+
| "channelUp"
|
|
34
|
+
| "channelDown"
|
|
35
|
+
| "channelList"
|
|
36
|
+
| "previousChannel"
|
|
37
|
+
| "previous"
|
|
38
|
+
| "next"
|
|
39
|
+
| "info"
|
|
40
|
+
| "captions"
|
|
41
|
+
| "bookmark"
|
|
42
|
+
| "colorRed"
|
|
43
|
+
| "colorGreen"
|
|
44
|
+
| "colorYellow"
|
|
45
|
+
| "colorBlue"
|
|
46
|
+
| "guide"
|
|
47
|
+
| "exit"
|
|
48
|
+
| "search"
|
|
49
|
+
| "backspace"
|
|
50
|
+
| "0"
|
|
51
|
+
| "1"
|
|
52
|
+
| "2"
|
|
53
|
+
| "3"
|
|
54
|
+
| "4"
|
|
55
|
+
| "5"
|
|
56
|
+
| "6"
|
|
57
|
+
| "7"
|
|
58
|
+
| "8"
|
|
59
|
+
| "9";
|
|
60
|
+
/** down on key-down, longPress once after a short hold, up on key-up. */
|
|
61
|
+
export type KeyAction = "down" | "up" | "longPress";
|
|
62
|
+
export interface TVKeyEvent {
|
|
63
|
+
readonly eventType: KeyName;
|
|
64
|
+
readonly eventKeyAction: KeyAction;
|
|
65
|
+
readonly velocity: number;
|
|
66
|
+
}
|
|
67
|
+
/** Every remote key, for comparing with `event.eventType`. */
|
|
68
|
+
export const Keys: {
|
|
69
|
+
readonly Left: "left";
|
|
70
|
+
readonly Right: "right";
|
|
71
|
+
readonly Up: "up";
|
|
72
|
+
readonly Down: "down";
|
|
73
|
+
readonly Select: "select";
|
|
74
|
+
readonly Back: "back";
|
|
75
|
+
readonly Menu: "menu";
|
|
76
|
+
readonly PlayPause: "playPause";
|
|
77
|
+
readonly Play: "play";
|
|
78
|
+
readonly Pause: "pause";
|
|
79
|
+
readonly Stop: "stop";
|
|
80
|
+
readonly Record: "record";
|
|
81
|
+
readonly FastForward: "fastForward";
|
|
82
|
+
readonly Rewind: "rewind";
|
|
83
|
+
readonly VolumeUp: "volumeUp";
|
|
84
|
+
readonly VolumeDown: "volumeDown";
|
|
85
|
+
readonly Mute: "mute";
|
|
86
|
+
readonly ChannelUp: "channelUp";
|
|
87
|
+
readonly ChannelDown: "channelDown";
|
|
88
|
+
readonly ChannelList: "channelList";
|
|
89
|
+
readonly PreviousChannel: "previousChannel";
|
|
90
|
+
readonly Previous: "previous";
|
|
91
|
+
readonly Next: "next";
|
|
92
|
+
readonly Info: "info";
|
|
93
|
+
readonly Captions: "captions";
|
|
94
|
+
readonly Bookmark: "bookmark";
|
|
95
|
+
readonly ColorRed: "colorRed";
|
|
96
|
+
readonly ColorGreen: "colorGreen";
|
|
97
|
+
readonly ColorYellow: "colorYellow";
|
|
98
|
+
readonly ColorBlue: "colorBlue";
|
|
99
|
+
readonly Guide: "guide";
|
|
100
|
+
readonly Exit: "exit";
|
|
101
|
+
readonly Search: "search";
|
|
102
|
+
readonly Backspace: "backspace";
|
|
103
|
+
readonly Digit0: "0";
|
|
104
|
+
readonly Digit1: "1";
|
|
105
|
+
readonly Digit2: "2";
|
|
106
|
+
readonly Digit3: "3";
|
|
107
|
+
readonly Digit4: "4";
|
|
108
|
+
readonly Digit5: "5";
|
|
109
|
+
readonly Digit6: "6";
|
|
110
|
+
readonly Digit7: "7";
|
|
111
|
+
readonly Digit8: "8";
|
|
112
|
+
readonly Digit9: "9";
|
|
113
|
+
};
|
|
114
|
+
/** Runs on every remote key; returning `true` stops the default focus move or select for that press. */
|
|
115
|
+
export function useTVEventHandler(handler: (event: TVKeyEvent) => boolean | void): void;
|
|
116
|
+
/** Automatically foreground-scoped; newest registration runs first. True consumes Back; false continues. */
|
|
117
|
+
export function useBackHandler(handler: () => boolean | void): void;
|
|
118
|
+
/** Closes the app; call it in a handler. */
|
|
119
|
+
export function exitApp(): void;
|
|
120
|
+
export const BackHandler: {
|
|
121
|
+
exitApp(): void;
|
|
122
|
+
};
|
|
123
|
+
/** tvOS: while enabled, Menu at the root reaches your Back handling instead of going Home; call it in a handler or effect. */
|
|
124
|
+
export const TVEventControl: {
|
|
125
|
+
enableTVMenuKey(): void;
|
|
126
|
+
disableTVMenuKey(): void;
|
|
127
|
+
};
|
|
128
|
+
/** react-native-device-info's result shape for the hooks that load their value. */
|
|
129
|
+
export interface DeviceInfoHookResult<T> {
|
|
130
|
+
readonly loading: boolean;
|
|
131
|
+
readonly result: T;
|
|
132
|
+
}
|
|
133
|
+
export interface DevicePowerState {
|
|
134
|
+
batteryLevel?: number;
|
|
135
|
+
batteryState?: string;
|
|
136
|
+
lowPowerMode?: boolean;
|
|
137
|
+
}
|
|
138
|
+
/** The device: plain members return the value, promise members resolve it, and `use*` hooks run at the top of a component. */
|
|
139
|
+
export const DeviceInfo: {
|
|
140
|
+
getApplicationName(): string;
|
|
141
|
+
getBrand(): string;
|
|
142
|
+
getManufacturerSync(): string;
|
|
143
|
+
getBuildNumber(): string;
|
|
144
|
+
getBundleId(): string;
|
|
145
|
+
getDeviceId(): string;
|
|
146
|
+
getDeviceType(): string;
|
|
147
|
+
getModel(): Promise<string>;
|
|
148
|
+
getPowerState(): Promise<DevicePowerState>;
|
|
149
|
+
getPowerStateSync(): DevicePowerState;
|
|
150
|
+
getReadableVersion(): Promise<string>;
|
|
151
|
+
getSystemName(): string;
|
|
152
|
+
getSystemVersion(): string;
|
|
153
|
+
getSerialNumberSync(): string;
|
|
154
|
+
getUniqueId(): Promise<string>;
|
|
155
|
+
getUniqueIdSync(): string;
|
|
156
|
+
getVersion(): string;
|
|
157
|
+
getMacAddressSync(): string;
|
|
158
|
+
getTypeSync(): string;
|
|
159
|
+
getIpAddress(): string;
|
|
160
|
+
hasNotch(): boolean;
|
|
161
|
+
hasDynamicIsland(): boolean;
|
|
162
|
+
hasSystemFeature(feature: string): Promise<boolean>;
|
|
163
|
+
hasSystemFeatureSync(feature: string): boolean;
|
|
164
|
+
isLandscape(): Promise<boolean>;
|
|
165
|
+
isLandscapeSync(): boolean;
|
|
166
|
+
isTablet(): boolean;
|
|
167
|
+
isLowRamDevice(): boolean;
|
|
168
|
+
isDisplayZoomed(): boolean;
|
|
169
|
+
supported32BitAbis(): Promise<string[]>;
|
|
170
|
+
supported32BitAbisSync(): string[];
|
|
171
|
+
supported64BitAbis(): Promise<string[]>;
|
|
172
|
+
supported64BitAbisSync(): string[];
|
|
173
|
+
supportedAbis(): Promise<string[]>;
|
|
174
|
+
supportedAbisSync(): string[];
|
|
175
|
+
useBatteryLevel(): number | null;
|
|
176
|
+
useBatteryLevelIsLow(): number | null;
|
|
177
|
+
useDeviceName(): DeviceInfoHookResult<string>;
|
|
178
|
+
useFirstInstallTime(): DeviceInfoHookResult<number>;
|
|
179
|
+
useHasSystemFeature(feature: string): DeviceInfoHookResult<boolean>;
|
|
180
|
+
useIsEmulator(): DeviceInfoHookResult<boolean>;
|
|
181
|
+
usePowerState(): DevicePowerState;
|
|
182
|
+
useIsHeadphonesConnected(): DeviceInfoHookResult<boolean>;
|
|
183
|
+
useIsWiredHeadphonesConnected(): DeviceInfoHookResult<boolean>;
|
|
184
|
+
useIsBluetoothHeadphonesConnected(): DeviceInfoHookResult<boolean>;
|
|
185
|
+
useBrightness(): number | null;
|
|
186
|
+
getFontScale(): number;
|
|
187
|
+
getFontScaleSync(): number;
|
|
188
|
+
getTotalMemorySync(): number;
|
|
189
|
+
getBaseOs(): string;
|
|
190
|
+
getTotalMemory(): Promise<number>;
|
|
191
|
+
getUsedMemory(): Promise<number>;
|
|
192
|
+
getTotalDiskCapacity(): Promise<number>;
|
|
193
|
+
getFreeDiskStorage(): Promise<number>;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// AUTO-GENERATED by descriptor-dialect generate-catalog.ts — DO NOT EDIT.
|
|
2
|
+
// Regenerate with `pnpm --filter @adelin/descriptor-dialect generate:catalog`.
|
|
3
|
+
|
|
4
|
+
declare module "@adelin/downloads" {
|
|
5
|
+
import type { VideoSource, MediaOperationResult, MediaOperationFailure, MediaOperationError } from "@adelin/ui";
|
|
6
|
+
export type { MediaOperationResult, MediaOperationFailure, MediaOperationError, MediaUnavailableReason } from "@adelin/ui";
|
|
7
|
+
export type DownloadStartResult = { outcome: 'completed'; taskId: string } | MediaOperationFailure;
|
|
8
|
+
export interface DownloadStartOptions {
|
|
9
|
+
entryId: string;
|
|
10
|
+
quality?: { maxHeight?: number; maxBitrate?: number };
|
|
11
|
+
audioTracks?: 'all' | 'none' | readonly string[];
|
|
12
|
+
textTracks?: 'all' | 'none' | readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export interface DownloadTask {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly entryId: string;
|
|
17
|
+
readonly status: 'idle' | 'downloading' | 'paused' | 'completed' | 'failed' | 'removing';
|
|
18
|
+
readonly progress: number;
|
|
19
|
+
readonly downloadedBytes: number;
|
|
20
|
+
readonly totalBytes: number | null;
|
|
21
|
+
readonly quality: { readonly maxHeight?: number; readonly maxBitrate?: number } | null;
|
|
22
|
+
readonly audioTracks: 'all' | 'none' | readonly string[];
|
|
23
|
+
readonly textTracks: 'all' | 'none' | readonly string[];
|
|
24
|
+
readonly licenseExpiresAt: number | null;
|
|
25
|
+
readonly error: MediaOperationError | null;
|
|
26
|
+
readonly playable: boolean;
|
|
27
|
+
readonly playbackSource?: VideoSource;
|
|
28
|
+
}
|
|
29
|
+
export interface DownloadsState {
|
|
30
|
+
readonly supported: boolean;
|
|
31
|
+
readonly loading: boolean;
|
|
32
|
+
readonly tasks: readonly DownloadTask[];
|
|
33
|
+
readonly storageBytes: number;
|
|
34
|
+
readonly pending: boolean;
|
|
35
|
+
readonly lastResult: MediaOperationResult | null;
|
|
36
|
+
}
|
|
37
|
+
export interface DownloadsApi {
|
|
38
|
+
start(options: DownloadStartOptions): Promise<DownloadStartResult>;
|
|
39
|
+
pause(id: string): Promise<MediaOperationResult>;
|
|
40
|
+
resume(id: string): Promise<MediaOperationResult>;
|
|
41
|
+
remove(id: string): Promise<MediaOperationResult>;
|
|
42
|
+
refresh(): Promise<MediaOperationResult>;
|
|
43
|
+
refreshLicense(id: string): Promise<MediaOperationResult>;
|
|
44
|
+
}
|
|
45
|
+
export function useDownloads(): DownloadsState;
|
|
46
|
+
export const downloads: DownloadsApi;
|
|
47
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Workspace-root types: the store state from `store.tsx` and the theme from `theme.ts`.
|
|
2
|
+
declare module "@adelin/store" {
|
|
3
|
+
export interface RootState extends SliceStates<typeof import("./store")> {}
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module "@adelin/ui" {
|
|
7
|
+
export interface ThemeOverride extends ThemeOf<typeof import("./theme").default> {}
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Workspace globals: timers and JSX plumbing only, so browser and network globals stay undeclared.
|
|
2
|
+
declare function setTimeout(handler: () => void, ms?: number): number;
|
|
3
|
+
declare function setInterval(handler: () => void, ms?: number): number;
|
|
4
|
+
declare function clearTimeout(handle?: number): void;
|
|
5
|
+
declare function clearInterval(handle?: number): void;
|
|
6
|
+
|
|
7
|
+
declare namespace JSX {
|
|
8
|
+
type Element = any;
|
|
9
|
+
/** Makes a component's `children` prop the contextual type of its child expression. */
|
|
10
|
+
interface ElementChildrenAttribute {
|
|
11
|
+
children: {};
|
|
12
|
+
}
|
|
13
|
+
interface IntrinsicAttributes {
|
|
14
|
+
key?: string | number;
|
|
15
|
+
}
|
|
16
|
+
interface IntrinsicElements {
|
|
17
|
+
[name: string]: any;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// UI text in the viewer's language, shaped like react-i18next.
|
|
2
|
+
declare module "@adelin/i18n" {
|
|
3
|
+
/** Values for `{{placeholders}}` (`count` is an ordinary value, it selects no key), plus `keyPrefix` and `defaultValue`. */
|
|
4
|
+
export type TOptions = Readonly<Record<string, string | number | boolean | null | undefined>> & {
|
|
5
|
+
keyPrefix?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
};
|
|
8
|
+
/** The text for exactly the key named, in the current language; for a list of keys, the first one that exists. */
|
|
9
|
+
export interface TFunction {
|
|
10
|
+
(key: string | readonly string[], options?: TOptions): string;
|
|
11
|
+
(key: string | readonly string[], defaultValue: string, options?: TOptions): string;
|
|
12
|
+
}
|
|
13
|
+
/** The app's language: read it, list the app's languages, switch it. */
|
|
14
|
+
export interface I18n {
|
|
15
|
+
/** The current language code, e.g. `"lt"`. */
|
|
16
|
+
readonly language: string;
|
|
17
|
+
/** The language the text is shown in after falling back. */
|
|
18
|
+
readonly resolvedLanguage: string;
|
|
19
|
+
/** The app's languages, in picker order. */
|
|
20
|
+
readonly options: { readonly supportedLngs: readonly string[] };
|
|
21
|
+
/** Switches the app's text and content to `lng`; resolves once the text has switched. */
|
|
22
|
+
changeLanguage(lng: string, callback?: (error: unknown, t: TFunction) => void): Promise<TFunction>;
|
|
23
|
+
}
|
|
24
|
+
/** `const { t, i18n } = useTranslation()` or `const [t, i18n, ready] = useTranslation()`. */
|
|
25
|
+
export function useTranslation(
|
|
26
|
+
ns?: "translation",
|
|
27
|
+
options?: { keyPrefix?: string },
|
|
28
|
+
): { t: TFunction; i18n: I18n; ready: boolean } & readonly [TFunction, I18n, boolean];
|
|
29
|
+
/** The language's own name for itself, e.g. `languageName("lt")` is `"Lietuvių"`. */
|
|
30
|
+
export function languageName(code: string): string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/** Canonical authored native-stack declarations for an Adelin workspace, mirroring `@react-navigation/native-stack`. */
|
|
2
|
+
declare module "@adelin/native-stack" {
|
|
3
|
+
import type { EventArg, NavigationProp, NavigationState, ParamListBase, RouteProp, Theme } from "@adelin/navigation";
|
|
4
|
+
import type { StyleProp, ViewStyle } from "@adelin/ui";
|
|
5
|
+
|
|
6
|
+
type Node = {} | null | undefined;
|
|
7
|
+
type Keyof<T extends {}> = Extract<keyof T, string>;
|
|
8
|
+
type ScrollEdgeEffect = "automatic" | "hard" | "soft" | "hidden";
|
|
9
|
+
type OptionsOrFunction<P extends ParamListBase, N extends keyof P> =
|
|
10
|
+
| NativeStackNavigationOptions
|
|
11
|
+
| ((args: NativeStackOptionsArgs<P, N>) => NativeStackNavigationOptions);
|
|
12
|
+
type ListenerMap = NativeStackNavigationEventMap & {
|
|
13
|
+
focus: { data: undefined };
|
|
14
|
+
blur: { data: undefined };
|
|
15
|
+
state: { data: { state: NavigationState } };
|
|
16
|
+
beforeRemove: { data: { action: { readonly type: string; readonly payload?: object } }; canPreventDefault: true };
|
|
17
|
+
};
|
|
18
|
+
type ScreenListeners = {
|
|
19
|
+
[E in keyof ListenerMap]?: (e: EventArg<E, ListenerMap[E] extends { canPreventDefault: true } ? true : false, ListenerMap[E]["data"]>) => void;
|
|
20
|
+
};
|
|
21
|
+
type ListenersOrFunction<P extends ParamListBase, N extends keyof P> =
|
|
22
|
+
| ScreenListeners
|
|
23
|
+
| ((args: { route: RouteProp<P, N>; navigation: NativeStackNavigationProp<P, N> }) => ScreenListeners);
|
|
24
|
+
type LayoutArgs<P extends ParamListBase, N extends keyof P> = {
|
|
25
|
+
route: RouteProp<P, N>;
|
|
26
|
+
options: NativeStackNavigationOptions;
|
|
27
|
+
navigation: NativeStackNavigationProp<P, N>;
|
|
28
|
+
theme: Theme;
|
|
29
|
+
children: Node;
|
|
30
|
+
};
|
|
31
|
+
type ScreenComponent<P extends ParamListBase, N extends keyof P> = ((props: { route: RouteProp<P, N>; navigation: any }) => unknown) | ((props: {}) => unknown);
|
|
32
|
+
type ScreenSource<P extends ParamListBase, N extends keyof P> =
|
|
33
|
+
| { component: ScreenComponent<P, N>; getComponent?: never; children?: never }
|
|
34
|
+
| { getComponent: () => ScreenComponent<P, N>; component?: never; children?: never }
|
|
35
|
+
| { children: (props: { route: RouteProp<P, N>; navigation: NativeStackNavigationProp<P, N> }) => Node; component?: never; getComponent?: never };
|
|
36
|
+
type ScreenProps<P extends ParamListBase, N extends keyof P> = ScreenSource<P, N> & {
|
|
37
|
+
name: N;
|
|
38
|
+
options?: OptionsOrFunction<P, N>;
|
|
39
|
+
listeners?: ListenersOrFunction<P, N>;
|
|
40
|
+
initialParams?: Partial<P[N]>;
|
|
41
|
+
getId?: (args: { params: Readonly<P[N]> }) => string | undefined;
|
|
42
|
+
navigationKey?: string;
|
|
43
|
+
layout?: (props: LayoutArgs<P, N>) => Node;
|
|
44
|
+
};
|
|
45
|
+
type GroupProps<P extends ParamListBase> = {
|
|
46
|
+
screenOptions?: OptionsOrFunction<P, keyof P>;
|
|
47
|
+
navigationKey?: string;
|
|
48
|
+
screenLayout?: (props: LayoutArgs<P, keyof P>) => Node;
|
|
49
|
+
children?: Node;
|
|
50
|
+
};
|
|
51
|
+
type TypedNavigator<P extends ParamListBase> = {
|
|
52
|
+
Navigator: (props: NativeStackNavigatorProps<P>) => unknown;
|
|
53
|
+
Screen: <N extends Keyof<P>>(props: ScreenProps<P, N>) => unknown;
|
|
54
|
+
Group: (props: GroupProps<P>) => unknown;
|
|
55
|
+
};
|
|
56
|
+
type StaticScreen = ((props: never) => unknown) | { config: object } | (StaticScreenConfig & { screen: ((props: never) => unknown) | { config: object } });
|
|
57
|
+
type StaticScreenConfig = {
|
|
58
|
+
options?: OptionsOrFunction<ParamListBase, string>;
|
|
59
|
+
listeners?: ListenersOrFunction<ParamListBase, string>;
|
|
60
|
+
initialParams?: object;
|
|
61
|
+
getId?: (args: { params: Readonly<object | undefined> }) => string | undefined;
|
|
62
|
+
navigationKey?: string;
|
|
63
|
+
layout?: (props: LayoutArgs<ParamListBase, string>) => Node;
|
|
64
|
+
if?: () => boolean;
|
|
65
|
+
};
|
|
66
|
+
type StaticNavigatorProps = Omit<NativeStackNavigatorProps, "children">;
|
|
67
|
+
type StaticConfig = {
|
|
68
|
+
screens?: Record<string, StaticScreen>;
|
|
69
|
+
groups?: Record<string, { screens: Record<string, StaticScreen>; screenOptions?: OptionsOrFunction<ParamListBase, string>; navigationKey?: string; screenLayout?: (props: LayoutArgs<ParamListBase, string>) => Node; if?: () => boolean }>;
|
|
70
|
+
initialRouteName?: string;
|
|
71
|
+
screenOptions?: OptionsOrFunction<ParamListBase, string>;
|
|
72
|
+
screenListeners?: ListenersOrFunction<ParamListBase, string>;
|
|
73
|
+
id?: string;
|
|
74
|
+
layout?: NativeStackNavigatorProps["layout"];
|
|
75
|
+
screenLayout?: (props: LayoutArgs<ParamListBase, string>) => Node;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** What a native stack announces to `listeners` and `navigation.addListener`, beside focus, blur, state and beforeRemove. */
|
|
79
|
+
export type NativeStackNavigationEventMap = {
|
|
80
|
+
transitionStart: { data: { closing: boolean } };
|
|
81
|
+
transitionEnd: { data: { closing: boolean } };
|
|
82
|
+
gestureCancel: { data: undefined };
|
|
83
|
+
sheetDetentChange: { data: { index: number; stable: boolean } };
|
|
84
|
+
};
|
|
85
|
+
/** The navigation object of screen `N` in a native stack. */
|
|
86
|
+
export type NativeStackNavigationProp<P extends ParamListBase, N extends keyof P = string, NavigatorID extends string | undefined = undefined> = NavigationProp<
|
|
87
|
+
P,
|
|
88
|
+
N,
|
|
89
|
+
NavigatorID,
|
|
90
|
+
NavigationState<P>,
|
|
91
|
+
NativeStackNavigationOptions,
|
|
92
|
+
NativeStackNavigationEventMap
|
|
93
|
+
>;
|
|
94
|
+
/** The props a native stack passes a screen component. */
|
|
95
|
+
export type NativeStackScreenProps<P extends ParamListBase, N extends keyof P = string, NavigatorID extends string | undefined = undefined> = {
|
|
96
|
+
navigation: NativeStackNavigationProp<P, N, NavigatorID>;
|
|
97
|
+
route: RouteProp<P, N>;
|
|
98
|
+
};
|
|
99
|
+
/** What an `options` or `screenOptions` function receives. */
|
|
100
|
+
export type NativeStackOptionsArgs<P extends ParamListBase, N extends keyof P = keyof P, NavigatorID extends string | undefined = undefined> = NativeStackScreenProps<P, N, NavigatorID> & {
|
|
101
|
+
theme: Theme;
|
|
102
|
+
};
|
|
103
|
+
/** The screen options a native stack applies; screens have no header, so no header options exist. */
|
|
104
|
+
export type NativeStackNavigationOptions = {
|
|
105
|
+
autoHideHomeIndicator?: boolean;
|
|
106
|
+
keyboardHandlingEnabled?: boolean;
|
|
107
|
+
/** @deprecated Android draws apps edge to edge, so this has no effect. */
|
|
108
|
+
navigationBarColor?: string;
|
|
109
|
+
/** @deprecated Android draws apps edge to edge, so this has no effect. */
|
|
110
|
+
navigationBarTranslucent?: boolean;
|
|
111
|
+
navigationBarHidden?: boolean;
|
|
112
|
+
statusBarAnimation?: "none" | "fade" | "slide";
|
|
113
|
+
/** @deprecated Android draws apps edge to edge, so this has no effect. */
|
|
114
|
+
statusBarBackgroundColor?: string;
|
|
115
|
+
statusBarHidden?: boolean;
|
|
116
|
+
statusBarStyle?: "inverted" | "auto" | "light" | "dark";
|
|
117
|
+
/** @deprecated Android draws apps edge to edge, so this has no effect. */
|
|
118
|
+
statusBarTranslucent?: boolean;
|
|
119
|
+
gestureDirection?: "vertical" | "horizontal";
|
|
120
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
121
|
+
animationMatchesGesture?: boolean;
|
|
122
|
+
fullScreenGestureEnabled?: boolean;
|
|
123
|
+
fullScreenGestureShadowEnabled?: boolean;
|
|
124
|
+
gestureEnabled?: boolean;
|
|
125
|
+
gestureResponseDistance?: { start?: number; end?: number; top?: number; bottom?: number };
|
|
126
|
+
animationTypeForReplace?: "push" | "pop";
|
|
127
|
+
animation?:
|
|
128
|
+
| "default"
|
|
129
|
+
| "fade"
|
|
130
|
+
| "fade_from_bottom"
|
|
131
|
+
| "flip"
|
|
132
|
+
| "none"
|
|
133
|
+
| "simple_push"
|
|
134
|
+
| "slide_from_bottom"
|
|
135
|
+
| "slide_from_right"
|
|
136
|
+
| "slide_from_left"
|
|
137
|
+
| "ios_from_right"
|
|
138
|
+
| "ios_from_left";
|
|
139
|
+
animationDuration?: number;
|
|
140
|
+
presentation?: "card" | "modal" | "transparentModal" | "containedModal" | "containedTransparentModal" | "fullScreenModal" | "formSheet" | "pageSheet";
|
|
141
|
+
sheetAllowedDetents?: number[] | "fitToContents";
|
|
142
|
+
sheetElevation?: number;
|
|
143
|
+
sheetExpandsWhenScrolledToEdge?: boolean;
|
|
144
|
+
sheetCornerRadius?: number;
|
|
145
|
+
sheetInitialDetentIndex?: number | "last";
|
|
146
|
+
sheetGrabberVisible?: boolean;
|
|
147
|
+
sheetLargestUndimmedDetentIndex?: number | "none" | "last";
|
|
148
|
+
sheetShouldOverflowTopInset?: boolean;
|
|
149
|
+
sheetResizeAnimationEnabled?: boolean;
|
|
150
|
+
orientation?: "default" | "all" | "portrait" | "portrait_up" | "portrait_down" | "landscape" | "landscape_left" | "landscape_right";
|
|
151
|
+
/** iOS 26 edge effect of the screen's first ScrollView, per edge. */
|
|
152
|
+
scrollEdgeEffects?: { top?: ScrollEdgeEffect; bottom?: ScrollEdgeEffect; left?: ScrollEdgeEffect; right?: ScrollEdgeEffect };
|
|
153
|
+
unstable_sheetFooter?: () => Node;
|
|
154
|
+
};
|
|
155
|
+
/** The props of `Stack.Navigator`. */
|
|
156
|
+
export type NativeStackNavigatorProps<P extends ParamListBase = ParamListBase> = {
|
|
157
|
+
id?: string;
|
|
158
|
+
initialRouteName?: Keyof<P>;
|
|
159
|
+
screenOptions?: OptionsOrFunction<P, keyof P>;
|
|
160
|
+
screenListeners?: ListenersOrFunction<P, keyof P>;
|
|
161
|
+
layout?: (props: { state: NavigationState<P>; navigation: NavigationProp<P>; descriptors: Record<string, unknown>; children: Node }) => Node;
|
|
162
|
+
screenLayout?: (props: LayoutArgs<P, keyof P>) => Node;
|
|
163
|
+
children?: Node;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/** A native stack navigator, used as `<Stack.Navigator>`, `<Stack.Screen>` and `<Stack.Group>`, or built from a static configuration. */
|
|
167
|
+
export function createNativeStackNavigator<P extends ParamListBase = ParamListBase>(): TypedNavigator<P>;
|
|
168
|
+
export function createNativeStackNavigator<Config extends StaticConfig>(
|
|
169
|
+
config: Config,
|
|
170
|
+
): TypedNavigator<ParamListBase> & {
|
|
171
|
+
config: Config;
|
|
172
|
+
getComponent(): (props: StaticNavigatorProps) => unknown;
|
|
173
|
+
/** Renders `decorator` in place of the navigator; it renders `Navigator`, whose props merge into the config. */
|
|
174
|
+
with(decorator: (props: { Navigator: (props: StaticNavigatorProps) => unknown }) => Node): { config: Config; getComponent(): (props: {}) => unknown };
|
|
175
|
+
};
|
|
176
|
+
/** One screen of a static configuration, typed on its own. */
|
|
177
|
+
export function createNativeStackScreen<S extends StaticScreenConfig & { screen: ((props: never) => unknown) | { config: object } }>(config: S): S;
|
|
178
|
+
}
|