@vestra-player/sdk 1.5.49 → 1.5.51

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.51
4
+
5
+ **Who must change: nobody.** Additive: `MENU_IDS` and `MenuId` gain `reset`, `apiVersion` stays `vestra/1`, no new capability. A plugin that puts a command under `@reset` sets `"minPlayerVersion": "0.6.3"`: older players refuse `@reset` with `invalid` (since SDK 1.5.49 that command is skipped and the rest of the plugin activates).
6
+
7
+ - **A Reset menu for every reset-to-default command** (user ruling, 2026-11-01). `["@reset", "Picture"]` (or the key `["Reset", …]`) puts a command into the player's new built-in top-level menu **Reset**, directly below Settings and in Settings' separator group (order 840, whatever the groups of the items inside). It lists the resets of every plugin in one place, so users do not hunt for them through Video, Audio and Subtitles; like every built-in menu it is shown only once a command is in it, and its title is the player's (复位 in Simplified Chinese).
8
+ - **`BUILTIN_COMMANDS` lists the built-in plugins' resets under Reset**, as player 0.6.3 declares them (command ids and default keys unchanged): `Reset ▸ Subtitle Position` (`move-reset`, Alt+Home), `Reset ▸ Subtitle Sync` (`sync-reset`, /), `Reset ▸ Picture` (`video.reset`, Q), `Reset ▸ Framing` (`video.frame.reset`, Numpad5, Alt+Backspace), `Reset ▸ Crop Position` (`video.reframe.reset`), `Reset ▸ Audio Sync` (`audio.sync.reset`, ?), `Reset ▸ Audio Processing` (`audio.reset`, now the processing only) and `Reset ▸ Idle Logo` (`reset-logo`, was `Settings ▸ Appearance ▸ Restore Default Logo`). `BUILTIN_SUBMENUS` is unchanged: every submenu these left keeps other items. The built-in command table in [Reference: commands](docs/reference/commands.md) follows.
9
+ - **`TestHost`** accepts `@reset`, shows Reset in the player's words (`HOST_ZH_HANS`) and lists it in its refusal of an unknown menu id (`… @settings, @reset`).
10
+ - _Docs_: [Guidelines: menus](docs/guidelines/menus.md#reset) gains **Reset**: put reset-to-default commands under `@reset`, titled by what they reset, without the word Reset ("Picture", "Subtitle Sync"); order and group them by domain; keep the command id when moving one (bindings and the user's keys follow the id); a "Normal"/"Default" radio or clearing user data is not a reset. [Reference: commands](docs/reference/commands.md#built-in-menus) lists `@reset` and the top-level sketch shows it; `CommandOptions.order` gives its fixed order.
11
+
12
+ ## 1.5.50
13
+
14
+ **Who must change: tools that read `llms-full.txt`.** It is removed (approved by the maintainer, 2026-11-01): from the package (`@vestra-player/sdk/llms-full.txt`), from the documentation site and from the generators. Read the documentation tree instead: `npx -p @vestra-player/sdk vestra-plugin docs [path]` and `… docs --search <words>`, or `docs(path)` and `searchDocs(query)` from `@vestra-player/sdk/docs` in a program. The player's Workshop vendors the package's `dist/` (the tree is `dist/docs-tree.json.gz`, built with the package; reading it needs nothing else) and must drop its `llms-full.txt` expectation. Plugins need no change: no changes to the plugin API, `apiVersion` stays `vestra/1`, no new capability, no player version needed.
15
+
16
+ - **The documentation as a tree for agents** (`@vestra-player/sdk/docs`, `vestra-plugin docs`). An agent never gets one large file any more (`llms-full.txt` was 1,032 KiB, half of it the API type dump, too large for an agent to read): it reads the documentation by path, like `go doc`, with the same pages, structure and text as the site. `/` lists Overview (the README), Guides and API; `/Guides/<group>/<page>` is a page of the site (`/Guides/How-to/Test a plugin`; its file name, with or without `.md`, and an old title work too); `/API/<category>/<symbol>/<member>` is one declaration of `@vestra-player/sdk`, `@vestra-player/sdk/testing` or `@vestra-player/sdk/docs` with its import line, signature (and links to the SDK types it names), parameters, return value, errors, capability, minimum player version, since and examples (`/API/Media/Snapshot/dispose`). Every node lists the paths one level down with the site's one-line summary (a page's description, a declaration's first paragraph). Links in the text are paths of the tree (in angle brackets when they have spaces), including the README's links to the site; other repository files link to GitHub; images are left out.
17
+ - **Paths are forgiving.** Case, spaces and punctuation do not matter, the leading `/` is optional, `.` works like `/` (`Snapshot.export`, `plugin.player`), a name alone finds its node at any depth (`TestHost`, `TestHost/settle`; a declaration wins over a guide page of a similar name and an interface over a category of the same name), one stale segment is left out (`/API/Playback/Snapshot/export`), and the whole path is tried against every candidate (`/API/Media/current` finds the interface `Media`'s member, not the category). Several equally good matches are listed, not guessed; a path that matches nothing answers with the nearest names and the level's contents. `#heading` opens the page of a long answer that has the section. In Git Bash, `vestra-plugin docs` undoes the shell's conversion of `/API…` into a Windows path (detected by `MSYSTEM`).
18
+ - **Search** (`searchDocs(query)`, `--search`) lists the nodes containing every word, leaving out common words ("a", "the", "to"); names rank first, a declaration's before a page's, a path that contains every word first of all.
19
+ - **Bounded answers.** Every answer is at most 8 KB (`DOCS_PAGE_BYTES`); a longer one comes in pages (`{ page: 2 }`, `--page 2`). Page 1 lists the sections with the page each starts on; a code block cut by a break is closed and opened again, a short one moves to the next page whole, a cut table repeats its header row.
20
+ - **Built with the package.** `npm run build` (and so `prepare`) converts the project with TypeDoc exactly as the site does (typedoc.json, `scripts/typedoc-plugin.mjs`) and writes `dist/docs-tree.json.gz` (scripts/docs-tree.mjs): 1,137 nodes, about 372 KiB gzipped (1.4 MiB of JSON), read on first use; TypeDoc is needed only to build it. A test checks that every page and every declaration of the site is in the tree, as a node or described in its owner's text.
21
+ - **`llms.txt` is a short entry** (llmstxt.org): what the SDK is, how to read the tree by command line or library, the path scheme, and the tree's top levels with their summaries; about 5 KB, generated from the tree (`npm run docs:llms`).
22
+ - _Docs_: new how-to [Give a coding agent the documentation](docs/how-to/agent-docs.md); [Command line](docs/reference/cli.md) lists `vestra-plugin docs`; the API pages gain `@vestra-player/sdk/docs`; the README and the maintainers' notes point to the tree instead of `llms-full.txt`.
23
+
3
24
  ## 1.5.49
4
25
 
5
26
  **Who must change: nobody.** No changes to the plugin API (`@vestra-player/sdk/runtime` gains the additive `RuntimeOptions` and an optional sixth `createPlugin` argument), `apiVersion` stays `vestra/1`, no new capability, no player version needed, and the player's runner needs no change. **Behaviour change, approved by the maintainer (2026-11-01):** in the player, a command declaration it refuses during activation no longer fails the whole plugin. What `commands.add` checks itself (an unknown `@` menu id, more than 8 path segments, an `order` out of range, a malformed or repeated binding, a bad `button`, a reason text of the wrong shape) still throws from `add`. A plugin whose `activate` relied on that failure (none is known) now runs without the refused command.
package/README.md CHANGED
@@ -23,7 +23,7 @@
23
23
  - **Tests without the player**: `@vestra-player/sdk/testing` runs your plugin against an in-memory host with `node --test`.
24
24
  - **One command line tool**, `vestra-plugin`, to check, test, build and pack a `.vxp` package.
25
25
  - **The same API on macOS and Windows**; every plugin runs in its own Node.js 26 process that the player ships.
26
- - **A reference for AI assistants**: [`llms.txt`](https://vestrasys.github.io/vestra-player-sdk/llms.txt) (short index) and [`llms-full.txt`](https://vestrasys.github.io/vestra-player-sdk/llms-full.txt) (every declaration, the guides and the examples), also in the package as `@vestra-player/sdk/llms.txt` and `@vestra-player/sdk/llms-full.txt`.
26
+ - **Documentation for coding agents**: `npx -p @vestra-player/sdk vestra-plugin docs [path]` reads this documentation as a tree of short pages, like `go doc` (`… docs Snapshot.export`, `… docs --search <words>`; in a project that depends on the SDK, `npx vestra-plugin docs`); programs import `@vestra-player/sdk/docs`. [`llms.txt`](https://vestrasys.github.io/vestra-player-sdk/llms.txt) (also `@vestra-player/sdk/llms.txt`) is the short entry that explains it.
27
27
 
28
28
  ## Install
29
29
 
@@ -6,6 +6,8 @@
6
6
  * vestra-plugin <check|build|test|pack> [plugin-dir...] [--version x.y.z] [--out dir]
7
7
  * vestra-plugin i18n extract [plugin-dir...] [--locale <lang>]...
8
8
  * vestra-plugin i18n check [plugin-dir...]
9
+ * vestra-plugin docs [path] [--page N]
10
+ * vestra-plugin docs --search <query> [--page N]
9
11
  *
10
12
  * A plugin directory holds manifest.json; the default is the current
11
13
  * directory. Works in any project that depends on @vestra-player/sdk.
@@ -19,6 +21,10 @@
19
21
  * test node --test on tests/*.test.{ts,mjs}
20
22
  * pack build, then dist/ → <out>/<id>-<version>.vxp (a zip; default
21
23
  * out: the current directory) with its sha256 and size
24
+ * docs the SDK's documentation by path, for coding agents: `/` lists
25
+ * Overview, Guides and API, `/API/Media/Snapshot/dispose` is
26
+ * one member's whole documentation; --search <query> lists
27
+ * matching paths; at most 8 KB per answer, --page N for the rest
22
28
  *
23
29
  * Translations (docs/how-to/i18n.md). English is the source text; each
24
30
  * language is a gettext file locales/<lang>.po:
@@ -932,8 +938,44 @@ const USAGE = [
932
938
  " vestra-plugin check [plugin-dir...] --json",
933
939
  " vestra-plugin i18n extract [plugin-dir...] [--locale <lang>]...",
934
940
  " vestra-plugin i18n check [plugin-dir...]",
941
+ " vestra-plugin docs [path] [--page N]",
942
+ " vestra-plugin docs --search <query> [--page N]",
935
943
  ].join("\n");
936
944
 
945
+ /** `vestra-plugin docs`: `@vestra-player/sdk/docs` on the command line. */
946
+ async function docsCommand(args) {
947
+ const index = args.indexOf("--page");
948
+ let page;
949
+ if (index >= 0) {
950
+ const [, value] = args.splice(index, 2);
951
+ page = Number(value);
952
+ if (!Number.isInteger(page) || page < 1)
953
+ fail("--page needs a page number (1, 2, …)");
954
+ }
955
+ const { docs, searchDocs } = await import(
956
+ pathToFileURL(join(sdkRoot, "dist/docs.js")).href
957
+ );
958
+ const search = args.indexOf("--search");
959
+ if (search >= 0) {
960
+ args.splice(search, 1);
961
+ if (!args.length) fail("--search needs words to search for");
962
+ console.log(searchDocs(args.join(" "), { page }));
963
+ return;
964
+ }
965
+ // A path with spaces may come as several arguments.
966
+ let path = args.length ? args.join(" ") : "/";
967
+ // Git Bash (MSYSTEM) turns "/API/Media" into "<its root>/API/Media":
968
+ // start again at the tree's top level.
969
+ if (process.env.MSYSTEM && /^[A-Za-z]:[\\/]/.test(path)) {
970
+ const segments = path.split(/[\\/]/);
971
+ const top = segments.findIndex((segment) =>
972
+ ["overview", "guides", "api"].includes(segment.toLowerCase()),
973
+ );
974
+ if (top > 0) path = `/${segments.slice(top).join("/")}`;
975
+ }
976
+ console.log(docs(path, { page }));
977
+ }
978
+
937
979
  async function main() {
938
980
  const args = process.argv.slice(2);
939
981
  const command = args.shift();
@@ -948,6 +990,10 @@ async function main() {
948
990
  console.log(USAGE);
949
991
  return;
950
992
  }
993
+ if (command === "docs") {
994
+ await docsCommand(args);
995
+ return;
996
+ }
951
997
  let subcommand = null;
952
998
  if (command === "i18n") {
953
999
  subcommand = args.shift();
@@ -98,8 +98,11 @@ export declare const COMMAND_LIMITS: {
98
98
  * command into that menu whatever language the player's menus are in. The
99
99
  * player stores the menu's title (视频 today); later segments are titles.
100
100
  * Needs player 0.3.0 (`"minPlayerVersion": "0.3.0"`); older players show
101
- * `@video` as a menu of its own. The player's tests check that this list
102
- * agrees with the player's.
101
+ * `@video` as a menu of its own. `reset` (SDK 1.5.51) needs player 0.6.3:
102
+ * the Reset menu, directly below Settings, gathers every command that puts
103
+ * something back to its default; older players refuse `@reset` with
104
+ * `invalid`. The player's tests check that this list agrees with the
105
+ * player's.
103
106
  *
104
107
  * @example Put a command into the built-in Video menu
105
108
  * "Blur" appears in the player's Video menu in every interface language.
@@ -121,7 +124,7 @@ export declare const COMMAND_LIMITS: {
121
124
  * @since 1.3.0
122
125
  * @category Testing
123
126
  */
124
- export declare const MENU_IDS: readonly ["open", "playback", "subtitles", "video", "audio", "screen", "settings"];
127
+ export declare const MENU_IDS: readonly ["open", "playback", "subtitles", "video", "audio", "screen", "settings", "reset"];
125
128
  /**
126
129
  * The icons a bottom-bar button may name (`CommandOptions.button.icon`):
127
130
  * every icon of the player's V-Line set, `@vestra/icons.slint` (draw one
package/dist/commands.js CHANGED
@@ -94,8 +94,11 @@ export const COMMAND_LIMITS = {
94
94
  * command into that menu whatever language the player's menus are in. The
95
95
  * player stores the menu's title (视频 today); later segments are titles.
96
96
  * Needs player 0.3.0 (`"minPlayerVersion": "0.3.0"`); older players show
97
- * `@video` as a menu of its own. The player's tests check that this list
98
- * agrees with the player's.
97
+ * `@video` as a menu of its own. `reset` (SDK 1.5.51) needs player 0.6.3:
98
+ * the Reset menu, directly below Settings, gathers every command that puts
99
+ * something back to its default; older players refuse `@reset` with
100
+ * `invalid`. The player's tests check that this list agrees with the
101
+ * player's.
99
102
  *
100
103
  * @example Put a command into the built-in Video menu
101
104
  * "Blur" appears in the player's Video menu in every interface language.
@@ -125,6 +128,7 @@ export const MENU_IDS = [
125
128
  "audio",
126
129
  "screen",
127
130
  "settings",
131
+ "reset",
128
132
  ];
129
133
  /**
130
134
  * The icons a bottom-bar button may name (`CommandOptions.button.icon`):
@@ -402,13 +406,11 @@ vestra.subtitles | size-up | Subtitles ▸ Subtitle Style ▸ Size + | Alt+PageU
402
406
  vestra.subtitles | size-down | Subtitles ▸ Subtitle Style ▸ Size − | Alt+PageDown
403
407
  vestra.subtitles | move-up | Subtitles ▸ Subtitle Style ▸ Move Up
404
408
  vestra.subtitles | move-down | Subtitles ▸ Subtitle Style ▸ Move Down
405
- vestra.subtitles | move-reset | Subtitles ▸ Subtitle Style ▸ Reset Position | Alt+Home
406
409
  vestra.subtitles | shadow | Subtitles ▸ Subtitle Style ▸ Shadow
407
410
  vestra.subtitles | box | Subtitles ▸ Subtitle Style ▸ Opaque Box
408
411
  vestra.subtitles | ass-original | Subtitles ▸ Original ASS/SSA Styles
409
412
  vestra.subtitles | sync-earlier | Subtitles ▸ Sync ▸ Earlier 0.5 s | .
410
413
  vestra.subtitles | sync-later | Subtitles ▸ Sync ▸ Later 0.5 s | ,
411
- vestra.subtitles | sync-reset | Subtitles ▸ Sync ▸ Reset | /
412
414
  vestra.subtitles | sync-input | Subtitles ▸ Sync ▸ Adjust Sync…
413
415
  vestra.subtitle-online | search | Subtitles ▸ Online Subtitles ▸ Search and Download Subtitles…
414
416
  vestra.subtitle-online | settings | Subtitles ▸ Online Subtitles ▸ Online Subtitle Settings…
@@ -458,12 +460,10 @@ vestra.video | video.reframe.crop.1 | Video ▸ Crop/Stretch ▸ Crop to 16:9
458
460
  vestra.video | video.reframe.crop.2 | Video ▸ Crop/Stretch ▸ Crop to 16:10
459
461
  vestra.video | video.reframe.crop.3 | Video ▸ Crop/Stretch ▸ Crop to 1.85:1
460
462
  vestra.video | video.reframe.crop.4 | Video ▸ Crop/Stretch ▸ Crop to 2.35:1
461
- vestra.video | video.reframe.reset | Video ▸ Crop/Stretch ▸ Reset Position
462
463
  vestra.video | video.reframe.left | Video ▸ Crop/Stretch ▸ Move Left
463
464
  vestra.video | video.reframe.right | Video ▸ Crop/Stretch ▸ Move Right
464
465
  vestra.video | video.reframe.up | Video ▸ Crop/Stretch ▸ Move Up
465
466
  vestra.video | video.reframe.down | Video ▸ Crop/Stretch ▸ Move Down
466
- vestra.video | video.frame.reset | Video ▸ Framing ▸ Reset Framing | Numpad5, Alt+Backspace
467
467
  vestra.video | video.frame.zoom-in | Video ▸ Framing ▸ Zoom In | Numpad9, Alt+Plus
468
468
  vestra.video | video.frame.zoom-out | Video ▸ Framing ▸ Zoom Out | Numpad1, Alt+-
469
469
  vestra.video | video.frame.right | Video ▸ Framing ▸ Pan → | Ctrl+Numpad6, Alt+ArrowRight
@@ -505,7 +505,6 @@ vestra.capture | capture.settings | Video ▸ Snapshot ▸ Snapshot Settings…
505
505
  vestra.capture | capture.folder | Video ▸ Snapshot ▸ Snapshot Folder…
506
506
  vestra.capture | capture.openFolder | Video ▸ Snapshot ▸ Open Snapshot Folder
507
507
  vestra.video | video.picture | Video ▸ Picture Adjustments…
508
- vestra.video | video.reset | Video ▸ Reset | Q
509
508
  vestra.video | video.brightness.down | Video ▸ Brightness -1% | W
510
509
  vestra.video | video.brightness.up | Video ▸ Brightness +1% | E
511
510
  vestra.video | video.contrast.down | Video ▸ Contrast -1% | R
@@ -534,13 +533,11 @@ vestra.audio | audio.preset.2 | Audio ▸ Preset ▸ Music
534
533
  vestra.audio | audio.preset.3 | Audio ▸ Preset ▸ Cinema
535
534
  vestra.audio | audio.sync.earlier | Audio ▸ Audio Sync ▸ 50 ms Earlier | >
536
535
  vestra.audio | audio.sync.later | Audio ▸ Audio Sync ▸ 50 ms Later | <
537
- vestra.audio | audio.sync.reset | Audio ▸ Audio Sync ▸ Reset | ?
538
536
  vestra.audio | audio.sync.keep.none | Audio ▸ Audio Sync ▸ Don't Keep
539
537
  vestra.audio | audio.sync.keep.session | Audio ▸ Audio Sync ▸ Keep for This Run
540
538
  vestra.audio | audio.sync.keep.always | Audio ▸ Audio Sync ▸ Always Keep
541
539
  vestra.audio | audio.normalize | Audio ▸ Processing ▸ Normalize | Shift+N
542
540
  vestra.audio | audio.clarity | Audio ▸ Processing ▸ Crystalizer | Shift+C
543
- vestra.audio | audio.reset | Audio ▸ Reset
544
541
  vestra.visualizer | audio-cover | Audio ▸ Show Album Cover for Audio Only
545
542
  host | fullscreen | Toggle Fullscreen | Escape
546
543
  vestra.window | pip | Screen ▸ Picture-in-Picture
@@ -575,7 +572,6 @@ vestra.preferences | theme.vestra | Settings ▸ Appearance ▸ Vestra Dark
575
572
  vestra.preferences | theme.vestra-light | Settings ▸ Appearance ▸ Vestra Light
576
573
  vestra.visualizer | idle-logo | Settings ▸ Appearance ▸ Show Logo When Idle
577
574
  vestra.visualizer | choose-logo | Settings ▸ Appearance ▸ Choose Logo Image…
578
- vestra.visualizer | reset-logo | Settings ▸ Appearance ▸ Restore Default Logo
579
575
  vestra.preferences | language.system | Settings ▸ Language ▸ Follow System
580
576
  vestra.preferences | language.en | Settings ▸ Language ▸ English
581
577
  vestra.preferences | language.zh-Hans | Settings ▸ Language ▸ 简体中文
@@ -584,6 +580,14 @@ vestra.preferences | language.ko | Settings ▸ Language ▸ 한국어
584
580
  vestra.preferences | language.de | Settings ▸ Language ▸ Deutsch
585
581
  vestra.preferences | language.fr | Settings ▸ Language ▸ Français
586
582
  vestra.preferences | language.es | Settings ▸ Language ▸ Español
583
+ vestra.subtitles | move-reset | Reset ▸ Subtitle Position | Alt+Home
584
+ vestra.subtitles | sync-reset | Reset ▸ Subtitle Sync | /
585
+ vestra.video | video.reset | Reset ▸ Picture | Q
586
+ vestra.video | video.frame.reset | Reset ▸ Framing | Numpad5, Alt+Backspace
587
+ vestra.video | video.reframe.reset | Reset ▸ Crop Position
588
+ vestra.audio | audio.sync.reset | Reset ▸ Audio Sync | ?
589
+ vestra.audio | audio.reset | Reset ▸ Audio Processing
590
+ vestra.visualizer | reset-logo | Reset ▸ Idle Logo
587
591
  vestra.info | info.about | About Vestra Player… | F1
588
592
  host | quit | Quit | Cmd+Q
589
593
  host | enter-fullscreen | (Enter Fullscreen)
Binary file
package/dist/docs.d.ts ADDED
@@ -0,0 +1,53 @@
1
+ /**
2
+ * The most bytes (UTF-8) one answer of `docs` or `searchDocs` has.
3
+ *
4
+ * @category Docs
5
+ */
6
+ export declare const DOCS_PAGE_BYTES = 8192;
7
+ /**
8
+ * Which page of a long answer to return.
9
+ *
10
+ * @category Docs
11
+ */
12
+ export interface DocsOptions {
13
+ /** 1-based; the default is 1. */
14
+ page?: number;
15
+ }
16
+ /**
17
+ * The documentation at `path`: its text, then the paths one level down,
18
+ * each with a one-line summary.
19
+ *
20
+ * `/` lists Overview, Guides and API. `/Guides/<group>/<page title>` is a
21
+ * page of the documentation site (its file name works too:
22
+ * `/Guides/How-to/testing`); `/API/<category>/<symbol>/<member>` is a
23
+ * declaration with its signature, parameters, return value, errors,
24
+ * capability, player version and examples. Matching ignores case, spaces
25
+ * and punctuation; a leading `/` and a `.md` suffix are optional; `.`
26
+ * works like `/` (`Snapshot.export`); a name that is not at its level is
27
+ * looked up below it (`TestHost`, `/API/Snapshot` finds
28
+ * `/API/Media/Snapshot`), and one stale segment is skipped. A `#heading`
29
+ * opens the page of a long answer that has it. A path that matches
30
+ * nothing answers with the nearest names and the level's contents.
31
+ *
32
+ * @param path - Default `/`.
33
+ * @param options - `page` of a long answer.
34
+ * @returns At most {@link DOCS_PAGE_BYTES} bytes of text; a continued
35
+ * answer ends with the number of the next page.
36
+ *
37
+ * @category Docs
38
+ */
39
+ export declare function docs(path?: string, options?: DocsOptions): string;
40
+ /**
41
+ * Search the documentation by name and text: the matching paths, best
42
+ * first, each with its one-line summary. Every word of `query` (common
43
+ * words such as "a", "the", "to" left out) must occur, in any case, in
44
+ * the path, the summary or the text; a match in a name ranks first, a
45
+ * declaration's name before a page's.
46
+ *
47
+ * @param query - Words, such as `"snapshot export"` or `"onError"`.
48
+ * @param options - `page` of a long answer.
49
+ * @returns At most {@link DOCS_PAGE_BYTES} bytes of text.
50
+ *
51
+ * @category Docs
52
+ */
53
+ export declare function searchDocs(query: string, options?: DocsOptions): string;