restty 0.1.34 → 0.1.35

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 (41) hide show
  1. package/README.md +26 -1
  2. package/dist/chunk-zqscavsh.js +70316 -0
  3. package/dist/ime/ime.d.ts +4 -4
  4. package/dist/index.d.ts +2 -0
  5. package/dist/internal.d.ts +2 -1
  6. package/dist/internal.esm.js +22285 -0
  7. package/dist/internal.js +1 -1
  8. package/dist/restty.esm.js +22285 -0
  9. package/dist/restty.js +1 -1
  10. package/dist/runtime/create-runtime/font-runtime-grid-helpers.d.ts +1 -0
  11. package/dist/runtime/create-runtime/font-runtime-helpers.types.d.ts +1 -0
  12. package/dist/runtime/create-runtime/highlight-terminal-color-utils.d.ts +13 -0
  13. package/dist/runtime/create-runtime/interaction-runtime/bind-pointer-aux-handlers.d.ts +2 -3
  14. package/dist/runtime/create-runtime/interaction-runtime/bind-pointer-events.d.ts +4 -10
  15. package/dist/runtime/create-runtime/interaction-runtime/bind-pointer-up-handler.d.ts +3 -2
  16. package/dist/runtime/create-runtime/interaction-runtime/desktop-word-selection.d.ts +8 -0
  17. package/dist/runtime/create-runtime/interaction-runtime/scrollbar-runtime.d.ts +4 -10
  18. package/dist/runtime/create-runtime/interaction-runtime/types.d.ts +6 -6
  19. package/dist/runtime/create-runtime/lifecycle-theme-size.types.d.ts +13 -2
  20. package/dist/runtime/create-runtime/ligature-runs.d.ts +52 -0
  21. package/dist/runtime/create-runtime/native-scrollbar-host.d.ts +15 -0
  22. package/dist/runtime/create-runtime/render-tick-webgpu.types.d.ts +11 -3
  23. package/dist/runtime/create-runtime/runtime-app-api.d.ts +8 -0
  24. package/dist/runtime/create-runtime/search-highlight-utils.d.ts +21 -0
  25. package/dist/runtime/create-runtime/search-runtime.d.ts +22 -0
  26. package/dist/runtime/overlay-scrollbar.d.ts +0 -7
  27. package/dist/runtime/types.d.ts +28 -0
  28. package/dist/surface/pane-app-manager.d.ts +16 -1
  29. package/dist/surface/pane-search-ui.d.ts +87 -0
  30. package/dist/surface/restty/active-pane-api.d.ts +8 -0
  31. package/dist/surface/restty/pane-ops.d.ts +17 -8
  32. package/dist/surface/restty-pane-handle.d.ts +38 -3
  33. package/dist/surface/restty.d.ts +5 -3
  34. package/dist/theme/ghostty.d.ts +13 -2
  35. package/dist/wasm/index.d.ts +1 -1
  36. package/dist/wasm/runtime/restty-wasm.d.ts +15 -1
  37. package/dist/wasm/runtime/types.d.ts +24 -0
  38. package/dist/xterm.esm.js +12210 -0
  39. package/dist/xterm.js +1 -1
  40. package/package.json +19 -3
  41. package/dist/chunk-meqn8xtd.js +0 -66867
@@ -1,6 +1,8 @@
1
1
  import type { InputHandler, MouseMode } from "../../input";
2
2
  import type { GhosttyTheme } from "../../theme";
3
3
  import type { ResttyPaneHandle } from "../restty-pane-handle";
4
+ import type { ResttyPaneSearchUiCloseOptions, ResttyPaneSearchUiOpenOptions } from "../pane-search-ui";
5
+ import type { ResttyManagedPaneSearchUiStyleOptions } from "../pane-app-manager";
4
6
  export declare abstract class ResttyActivePaneApi {
5
7
  protected abstract requireActivePaneHandle(): ResttyPaneHandle;
6
8
  isPtyConnected(): boolean;
@@ -17,6 +19,12 @@ export declare abstract class ResttyActivePaneApi {
17
19
  getMouseStatus(): ReturnType<InputHandler["getMouseStatus"]>;
18
20
  copySelectionToClipboard(): Promise<boolean>;
19
21
  pasteFromClipboard(): Promise<boolean>;
22
+ openSearch(options?: ResttyPaneSearchUiOpenOptions): void;
23
+ closeSearch(options?: ResttyPaneSearchUiCloseOptions): void;
24
+ toggleSearch(options?: ResttyPaneSearchUiOpenOptions & ResttyPaneSearchUiCloseOptions): void;
25
+ isSearchOpen(): boolean;
26
+ getSearchUiStyleOptions(): Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
27
+ setSearchUiStyleOptions(options: ResttyManagedPaneSearchUiStyleOptions): void;
20
28
  dumpAtlasForCodepoint(cp: number): void;
21
29
  updateSize(force?: boolean): void;
22
30
  getBackend(): string;
@@ -1,25 +1,32 @@
1
- import type { ResttyManagedAppPane, ResttyManagedPaneStyleOptions } from "../pane-app-manager";
1
+ import type { ResttyAppPaneManager, ResttyManagedAppPane, ResttyManagedPaneStyleOptions, ResttyManagedPaneSearchUiStyleOptions } from "../pane-app-manager";
2
2
  import type { ResttyPaneManager, ResttyPaneSplitDirection } from "../panes-types";
3
3
  import { ResttyPaneHandle } from "../restty-pane-handle";
4
4
  import type { ResttyLifecycleHookPayload, ResttyPluginEvents } from "../restty-plugin-types";
5
+ import type { ResttyPaneSearchUiCloseOptions, ResttyPaneSearchUiOpenOptions } from "../pane-search-ui";
5
6
  type ResttyPaneLookup = {
6
7
  getPanes: () => ResttyManagedAppPane[];
7
8
  getPaneById: (id: number) => ResttyManagedAppPane | null;
8
9
  getActivePane: () => ResttyManagedAppPane | null;
9
10
  getFocusedPane: () => ResttyManagedAppPane | null;
11
+ openPaneSearch: (id: number, options?: ResttyPaneSearchUiOpenOptions) => void;
12
+ closePaneSearch: (id: number, options?: ResttyPaneSearchUiCloseOptions) => void;
13
+ togglePaneSearch: (id: number, options?: ResttyPaneSearchUiOpenOptions & ResttyPaneSearchUiCloseOptions) => void;
14
+ isPaneSearchOpen: (id: number) => boolean;
15
+ getSearchUiStyleOptions: () => Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
16
+ setSearchUiStyleOptions: (options: ResttyManagedPaneSearchUiStyleOptions) => void;
10
17
  };
11
18
  type ResttyLifecycleEmitter = {
12
19
  runLifecycleHooks: (payload: ResttyLifecycleHookPayload) => void;
13
20
  emitPluginEvent: <E extends keyof ResttyPluginEvents>(event: E, payload: ResttyPluginEvents[E]) => void;
14
21
  };
15
22
  export declare function requirePaneById(getPaneById: (id: number) => ResttyManagedAppPane | null, id: number): ResttyManagedAppPane;
16
- export declare function makePaneHandle(getPaneById: (id: number) => ResttyManagedAppPane | null, id: number): ResttyPaneHandle;
17
- export declare function requireActivePaneHandle(lookup: Pick<ResttyPaneLookup, "getActivePane" | "getPaneById">): ResttyPaneHandle;
18
- export declare function panes(lookup: Pick<ResttyPaneLookup, "getPanes" | "getPaneById">): ResttyPaneHandle[];
19
- export declare function pane(lookup: Pick<ResttyPaneLookup, "getPaneById">, id: number): ResttyPaneHandle | null;
20
- export declare function activePane(lookup: Pick<ResttyPaneLookup, "getActivePane" | "getPaneById">): ResttyPaneHandle | null;
21
- export declare function focusedPane(lookup: Pick<ResttyPaneLookup, "getFocusedPane" | "getPaneById">): ResttyPaneHandle | null;
22
- export declare function forEachPane(lookup: Pick<ResttyPaneLookup, "getPanes" | "getPaneById">, visitor: (pane: ResttyPaneHandle) => void): void;
23
+ export declare function makePaneHandle(lookup: Pick<ResttyPaneLookup, "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">, id: number): ResttyPaneHandle;
24
+ export declare function requireActivePaneHandle(lookup: Pick<ResttyPaneLookup, "getActivePane" | "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">): ResttyPaneHandle;
25
+ export declare function panes(lookup: Pick<ResttyPaneLookup, "getPanes" | "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">): ResttyPaneHandle[];
26
+ export declare function pane(lookup: Pick<ResttyPaneLookup, "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">, id: number): ResttyPaneHandle | null;
27
+ export declare function activePane(lookup: Pick<ResttyPaneLookup, "getActivePane" | "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">): ResttyPaneHandle | null;
28
+ export declare function focusedPane(lookup: Pick<ResttyPaneLookup, "getFocusedPane" | "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">): ResttyPaneHandle | null;
29
+ export declare function forEachPane(lookup: Pick<ResttyPaneLookup, "getPanes" | "getPaneById" | "openPaneSearch" | "closePaneSearch" | "togglePaneSearch" | "isPaneSearchOpen" | "getSearchUiStyleOptions" | "setSearchUiStyleOptions">, visitor: (pane: ResttyPaneHandle) => void): void;
23
30
  export declare function createInitialPane(paneManager: ResttyPaneManager<ResttyManagedAppPane>, hooks: Pick<ResttyLifecycleEmitter, "runLifecycleHooks">, options?: {
24
31
  focus?: boolean;
25
32
  }): ResttyManagedAppPane;
@@ -39,4 +46,6 @@ export declare function focus(lookup: Pick<ResttyPaneLookup, "getActivePane" | "
39
46
  export declare function blur(lookup: Pick<ResttyPaneLookup, "getActivePane" | "getPaneById">, hooks: ResttyLifecycleEmitter): void;
40
47
  export declare function getPaneStyleOptions(paneManager: ResttyPaneManager<ResttyManagedAppPane>): Readonly<Required<ResttyManagedPaneStyleOptions>>;
41
48
  export declare function setPaneStyleOptions(paneManager: ResttyPaneManager<ResttyManagedAppPane>, options: ResttyManagedPaneStyleOptions): void;
49
+ export declare function getSearchUiStyleOptions(paneManager: Pick<ResttyAppPaneManager, "getSearchUiStyleOptions">): Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
50
+ export declare function setSearchUiStyleOptions(paneManager: Pick<ResttyAppPaneManager, "setSearchUiStyleOptions">, options: ResttyManagedPaneSearchUiStyleOptions): void;
42
51
  export {};
@@ -1,7 +1,16 @@
1
1
  import type { InputHandler, MouseMode } from "../input";
2
2
  import type { GhosttyTheme } from "../theme";
3
- import type { ResttyManagedAppPane } from "./pane-app-manager";
4
- import type { ResttyShaderStage } from "../runtime/types";
3
+ import type { ResttyManagedAppPane, ResttyManagedPaneSearchUiStyleOptions } from "./pane-app-manager";
4
+ import type { ResttySearchState, ResttyShaderStage } from "../runtime/types";
5
+ import type { ResttyPaneSearchUiCloseOptions, ResttyPaneSearchUiOpenOptions } from "./pane-search-ui";
6
+ type PaneSearchUiHandleOps = {
7
+ open: (paneId: number, options?: ResttyPaneSearchUiOpenOptions) => void;
8
+ close: (paneId: number, options?: ResttyPaneSearchUiCloseOptions) => void;
9
+ toggle: (paneId: number, options?: ResttyPaneSearchUiOpenOptions & ResttyPaneSearchUiCloseOptions) => void;
10
+ isOpen: (paneId: number) => boolean;
11
+ getStyleOptions: () => Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
12
+ setStyleOptions: (options: ResttyManagedPaneSearchUiStyleOptions) => void;
13
+ };
5
14
  /**
6
15
  * Public API surface exposed by each pane handle.
7
16
  */
@@ -23,12 +32,24 @@ export type ResttyPaneApi = {
23
32
  getMouseStatus: () => ReturnType<InputHandler["getMouseStatus"]>;
24
33
  copySelectionToClipboard: () => Promise<boolean>;
25
34
  pasteFromClipboard: () => Promise<boolean>;
35
+ selectWordAtClientPoint: (clientX: number, clientY: number) => boolean;
36
+ setSearchQuery: (query: string) => void;
37
+ clearSearch: () => void;
38
+ searchNext: () => void;
39
+ searchPrevious: () => void;
40
+ getSearchState: () => ResttySearchState;
41
+ openSearch: (options?: ResttyPaneSearchUiOpenOptions) => void;
42
+ closeSearch: (options?: ResttyPaneSearchUiCloseOptions) => void;
43
+ toggleSearch: (options?: ResttyPaneSearchUiOpenOptions & ResttyPaneSearchUiCloseOptions) => void;
44
+ isSearchOpen: () => boolean;
26
45
  dumpAtlasForCodepoint: (cp: number) => void;
27
46
  resize: (cols: number, rows: number) => void;
28
47
  focus: () => void;
29
48
  blur: () => void;
30
49
  updateSize: (force?: boolean) => void;
31
50
  getBackend: () => string;
51
+ getSearchUiStyleOptions: () => Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
52
+ setSearchUiStyleOptions: (options: ResttyManagedPaneSearchUiStyleOptions) => void;
32
53
  setShaderStages: (stages: ResttyShaderStage[]) => void;
33
54
  getShaderStages: () => ResttyShaderStage[];
34
55
  getRawPane: () => ResttyManagedAppPane;
@@ -40,7 +61,8 @@ export type ResttyPaneApi = {
40
61
  */
41
62
  export declare class ResttyPaneHandle implements ResttyPaneApi {
42
63
  private readonly resolvePane;
43
- constructor(resolvePane: () => ResttyManagedAppPane);
64
+ private readonly searchUiOps;
65
+ constructor(resolvePane: () => ResttyManagedAppPane, searchUiOps: PaneSearchUiHandleOps);
44
66
  get id(): number;
45
67
  setRenderer(value: "auto" | "webgpu" | "webgl2"): void;
46
68
  setPaused(value: boolean): void;
@@ -58,13 +80,26 @@ export declare class ResttyPaneHandle implements ResttyPaneApi {
58
80
  getMouseStatus(): ReturnType<InputHandler["getMouseStatus"]>;
59
81
  copySelectionToClipboard(): Promise<boolean>;
60
82
  pasteFromClipboard(): Promise<boolean>;
83
+ selectWordAtClientPoint(clientX: number, clientY: number): boolean;
84
+ setSearchQuery(query: string): void;
85
+ clearSearch(): void;
86
+ searchNext(): void;
87
+ searchPrevious(): void;
88
+ getSearchState(): ResttySearchState;
89
+ openSearch(options?: ResttyPaneSearchUiOpenOptions): void;
90
+ closeSearch(options?: ResttyPaneSearchUiCloseOptions): void;
91
+ toggleSearch(options?: ResttyPaneSearchUiOpenOptions & ResttyPaneSearchUiCloseOptions): void;
92
+ isSearchOpen(): boolean;
61
93
  dumpAtlasForCodepoint(cp: number): void;
62
94
  resize(cols: number, rows: number): void;
63
95
  focus(): void;
64
96
  blur(): void;
65
97
  updateSize(force?: boolean): void;
66
98
  getBackend(): string;
99
+ getSearchUiStyleOptions(): Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
100
+ setSearchUiStyleOptions(options: ResttyManagedPaneSearchUiStyleOptions): void;
67
101
  setShaderStages(stages: ResttyShaderStage[]): void;
68
102
  getShaderStages(): ResttyShaderStage[];
69
103
  getRawPane(): ResttyManagedAppPane;
70
104
  }
105
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type { DesktopNotification } from "../input";
2
- import { type CreateResttyAppPaneManagerOptions, type ResttyManagedAppPane, type ResttyManagedPaneStyleOptions, type ResttyPaneAppOptionsInput } from "./pane-app-manager";
3
- import type { ResttyPaneManager, ResttyPaneSplitDirection } from "./panes-types";
2
+ import { type ResttyAppPaneManager, type CreateResttyAppPaneManagerOptions, type ResttyManagedAppPane, type ResttyManagedPaneStyleOptions, type ResttyManagedPaneSearchUiStyleOptions, type ResttyPaneAppOptionsInput } from "./pane-app-manager";
3
+ import type { ResttyPaneSplitDirection } from "./panes-types";
4
4
  import type { ResttyFontSource, ResttyShaderStage } from "../runtime/types";
5
5
  import { ResttyPaneHandle } from "./restty-pane-handle";
6
6
  import { ResttyActivePaneApi } from "./restty/active-pane-api";
@@ -34,7 +34,7 @@ export type ResttyOptions = Omit<CreateResttyAppPaneManagerOptions, "appOptions"
34
34
  * convenience methods that operate on the active pane.
35
35
  */
36
36
  export declare class Restty extends ResttyActivePaneApi {
37
- readonly paneManager: ResttyPaneManager<ResttyManagedAppPane>;
37
+ readonly paneManager: ResttyAppPaneManager;
38
38
  private fontSources;
39
39
  private readonly shaderOps;
40
40
  private readonly pluginOps;
@@ -61,6 +61,8 @@ export declare class Restty extends ResttyActivePaneApi {
61
61
  closePane(id: number): boolean;
62
62
  getPaneStyleOptions(): Readonly<Required<ResttyManagedPaneStyleOptions>>;
63
63
  setPaneStyleOptions(options: ResttyManagedPaneStyleOptions): void;
64
+ getSearchUiStyleOptions(): Readonly<Required<ResttyManagedPaneSearchUiStyleOptions>>;
65
+ setSearchUiStyleOptions(options: ResttyManagedPaneSearchUiStyleOptions): void;
64
66
  setActivePane(id: number, options?: {
65
67
  focus?: boolean;
66
68
  }): void;
@@ -5,6 +5,7 @@ export type ThemeColor = {
5
5
  b: number;
6
6
  a?: number;
7
7
  };
8
+ export type ThemeTerminalColor = ThemeColor | "cell-foreground" | "cell-background";
8
9
  /**
9
10
  * Parsed Ghostty terminal theme with semantic colors and full 256-color palette.
10
11
  */
@@ -22,9 +23,17 @@ export type GhosttyTheme = {
22
23
  /** Text color under the cursor. */
23
24
  cursorText?: ThemeColor;
24
25
  /** Selection background color. */
25
- selectionBackground?: ThemeColor;
26
+ selectionBackground?: ThemeTerminalColor;
26
27
  /** Selection foreground (text) color. */
27
- selectionForeground?: ThemeColor;
28
+ selectionForeground?: ThemeTerminalColor;
29
+ /** Search match background color. */
30
+ searchBackground?: ThemeTerminalColor;
31
+ /** Search match foreground color. */
32
+ searchForeground?: ThemeTerminalColor;
33
+ /** Active search match background color. */
34
+ searchSelectedBackground?: ThemeTerminalColor;
35
+ /** Active search match foreground color. */
36
+ searchSelectedForeground?: ThemeTerminalColor;
28
37
  /** 256-color palette (indices 0-255). */
29
38
  palette: Array<ThemeColor | undefined>;
30
39
  };
@@ -33,6 +42,8 @@ export type GhosttyTheme = {
33
42
  };
34
43
  /** Parse a Ghostty color value (hex, rgb/rgba, or named color). */
35
44
  export declare function parseGhosttyColor(value: string): ThemeColor | null;
45
+ /** Parse a Ghostty TerminalColor value. */
46
+ export declare function parseGhosttyTerminalColor(value: string): ThemeTerminalColor | null;
36
47
  /** Convert ThemeColor to normalized RGBA floats (0.0-1.0). */
37
48
  export declare function colorToFloats(color: ThemeColor, alphaOverride?: number): [number, number, number, number];
38
49
  /** Convert ThemeColor to packed 24-bit RGB integer (0xRRGGBB). */
@@ -1,2 +1,2 @@
1
- export type { CursorInfo, KittyPlacement, RenderState, ResttyWasmExports, ResttyWasmOptions, WasmAbi, WasmAbiKind, } from "./runtime/types";
1
+ export type { CursorInfo, KittyPlacement, RenderState, SearchStatus, SearchViewportMatch, ResttyWasmExports, ResttyWasmOptions, WasmAbi, WasmAbiKind, } from "./runtime/types";
2
2
  export { ResttyWasm, loadResttyWasm } from "./runtime/restty-wasm";
@@ -1,4 +1,4 @@
1
- import type { KittyPlacement, RenderState, ResttyWasmExports, ResttyWasmOptions, WasmAbi } from "./types";
1
+ import type { KittyPlacement, RenderState, ResttyWasmExports, ResttyWasmOptions, SearchStatus, SearchViewportMatch, WasmAbi } from "./types";
2
2
  /** WASM terminal core runtime with memory management and typed array caching. */
3
3
  export declare class ResttyWasm {
4
4
  readonly exports: ResttyWasmExports;
@@ -25,6 +25,20 @@ export declare class ResttyWasm {
25
25
  drainOutput(handle: number): string;
26
26
  /** Get active Kitty keyboard protocol flags. */
27
27
  getKittyKeyboardFlags(handle: number): number;
28
+ /** Set the active terminal search query. */
29
+ setSearchQuery(handle: number, query: string): void;
30
+ /** Clear the active terminal search query and results. */
31
+ clearSearch(handle: number): void;
32
+ /** Advance terminal search work by a bounded budget. */
33
+ stepSearch(handle: number, budget: number): void;
34
+ /** Select the next search match. */
35
+ searchNext(handle: number): void;
36
+ /** Select the previous search match. */
37
+ searchPrevious(handle: number): void;
38
+ /** Get the current terminal search status. */
39
+ getSearchStatus(handle: number): SearchStatus;
40
+ /** Get visible search-highlight spans for the current viewport. */
41
+ getSearchViewportMatches(handle: number): SearchViewportMatch[];
28
42
  /** Get all active Kitty graphics placements. */
29
43
  getKittyPlacements(handle: number): KittyPlacement[];
30
44
  /** Write text to terminal for processing. */
@@ -19,6 +19,22 @@ export type CursorInfo = {
19
19
  wideTail: number;
20
20
  color: number;
21
21
  };
22
+ /** Search status snapshot from the WASM terminal core. */
23
+ export type SearchStatus = {
24
+ active: boolean;
25
+ pending: boolean;
26
+ complete: boolean;
27
+ generation: number;
28
+ totalMatches: number;
29
+ selectedIndex: number | null;
30
+ };
31
+ /** Visible search-highlight span in viewport coordinates. */
32
+ export type SearchViewportMatch = {
33
+ row: number;
34
+ startCol: number;
35
+ endCol: number;
36
+ selected: boolean;
37
+ };
22
38
  /** Kitty graphics protocol image placement descriptor. */
23
39
  export type KittyPlacement = {
24
40
  imageId: number;
@@ -138,6 +154,14 @@ export type ResttyWasmExports = WebAssembly.Exports & {
138
154
  restty_kitty_placement_stride?: () => number;
139
155
  restty_kitty_placement_count?: (handle: number) => number;
140
156
  restty_kitty_placements_ptr?: (handle: number) => number;
157
+ restty_search_set_query?: (handle: number, ptr: number, len: number) => number;
158
+ restty_search_clear?: (handle: number) => number;
159
+ restty_search_step?: (handle: number, budget: number) => number;
160
+ restty_search_status_ptr?: (handle: number) => number;
161
+ restty_search_viewport_match_count?: (handle: number) => number;
162
+ restty_search_viewport_matches_ptr?: (handle: number) => number;
163
+ restty_search_select_next?: (handle: number) => number;
164
+ restty_search_select_prev?: (handle: number) => number;
141
165
  };
142
166
  /** Construction options for WASM runtime. */
143
167
  export type ResttyWasmOptions = {