@lark.js/mvc 0.0.15 → 0.0.16

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 (60) hide show
  1. package/README.md +324 -215
  2. package/dist/chunk-OGPBFCIK.js +105 -0
  3. package/dist/client.d.cts +63 -0
  4. package/dist/client.d.ts +10 -34
  5. package/dist/compiler.cjs +15534 -15854
  6. package/dist/compiler.js +15519 -15851
  7. package/dist/devtool.cjs +2617 -4152
  8. package/dist/devtool.d.cts +1 -2
  9. package/dist/devtool.d.ts +1 -2
  10. package/dist/devtool.js +2543 -4159
  11. package/dist/index.cjs +4128 -6008
  12. package/dist/index.d.cts +568 -1288
  13. package/dist/index.d.ts +568 -1288
  14. package/dist/index.js +4058 -5976
  15. package/dist/rspack.cjs +15648 -15935
  16. package/dist/rspack.d.cts +5 -42
  17. package/dist/rspack.d.ts +5 -42
  18. package/dist/rspack.js +15641 -15934
  19. package/dist/runtime.cjs +79 -79
  20. package/dist/runtime.js +19 -85
  21. package/dist/vite.cjs +15841 -15957
  22. package/dist/vite.d.cts +1 -2
  23. package/dist/vite.d.ts +1 -2
  24. package/dist/vite.js +15834 -15955
  25. package/dist/webpack.cjs +15648 -15985
  26. package/dist/webpack.d.cts +4 -32
  27. package/dist/webpack.d.ts +4 -32
  28. package/dist/webpack.js +15641 -15984
  29. package/package.json +3 -4
  30. package/dist/apply-style.d.ts +0 -9
  31. package/dist/cache.d.ts +0 -69
  32. package/dist/common.d.ts +0 -64
  33. package/dist/compiler/compile-template.d.ts +0 -16
  34. package/dist/compiler/compile-to-vdom-function.d.ts +0 -13
  35. package/dist/compiler/extract-global-vars.d.ts +0 -17
  36. package/dist/compiler/template-syntax.d.ts +0 -61
  37. package/dist/cross-site.d.ts +0 -29
  38. package/dist/dom.d.ts +0 -45
  39. package/dist/event-delegator.d.ts +0 -28
  40. package/dist/event-emitter.d.ts +0 -38
  41. package/dist/frame.d.ts +0 -143
  42. package/dist/framework.d.ts +0 -9
  43. package/dist/hmr.d.ts +0 -53
  44. package/dist/index.amd.js +0 -6285
  45. package/dist/index.umd.js +0 -6272
  46. package/dist/mark.d.ts +0 -26
  47. package/dist/module-loader.d.ts +0 -20
  48. package/dist/router.d.ts +0 -14
  49. package/dist/runtime.amd.js +0 -94
  50. package/dist/runtime.umd.js +0 -98
  51. package/dist/service.d.ts +0 -173
  52. package/dist/state.d.ts +0 -8
  53. package/dist/store.d.ts +0 -60
  54. package/dist/types.d.ts +0 -1259
  55. package/dist/updater.d.ts +0 -90
  56. package/dist/url-state.d.ts +0 -32
  57. package/dist/utils.d.ts +0 -90
  58. package/dist/vdom.d.ts +0 -45
  59. package/dist/view-registry.d.ts +0 -20
  60. package/dist/view.d.ts +0 -214
package/dist/mark.d.ts DELETED
@@ -1,26 +0,0 @@
1
- /**
2
- * Mark/Unmark: signature-based lifecycle tracking for async callbacks.
3
- *
4
- * `mark(host, key)` returns a validity checker. The checker returns `false`
5
- * once the host is unmarked (e.g. when a view re-renders or is destroyed),
6
- * so stale async callbacks can short-circuit and skip work.
7
- *
8
- * State is stored in a module-level WeakMap, not on the host object, so
9
- * `mark/unmark` never pollutes user objects with magic keys, never breaks
10
- * on `Object.freeze`-ed inputs, and never shows up in debug snapshots.
11
- */
12
- /**
13
- * Create a mark for tracking async callback validity.
14
- * Returns a function that returns true while the mark is still valid.
15
- *
16
- * @param host - Object to associate the mark with (typically a view)
17
- * @param key - Key to track (typically "render" or a specific async-op identifier)
18
- */
19
- export declare function mark(host: object, key: string): () => boolean;
20
- /**
21
- * Clear all marks for a host object, invalidating every existing checker.
22
- * Called when a view re-renders or is destroyed.
23
- *
24
- * @param host - Object whose marks should be invalidated
25
- */
26
- export declare function unmark(host: object): void;
@@ -1,20 +0,0 @@
1
- /**
2
- * Module loader: async view loading via FrameworkConfig.require or dynamic import.
3
- *
4
- * Extracted from framework.ts to avoid circular dependency with frame.ts.
5
- * Both framework.ts and frame.ts import from this module.
6
- */
7
- import type { FrameworkConfig } from "./types";
8
- /** Framework configuration */
9
- export declare const config: FrameworkConfig;
10
- /**
11
- * Load modules via the configured require function or dynamic import fallback.
12
- *
13
- * Two calling conventions:
14
- * 1. `use(name | name[], callback)`
15
- * 2. `use(name | name[])` — returns Promise<unknown[]> (no callback)
16
- *
17
- * When `FrameworkConfig.require` is configured, delegates to it (e.g., Webpack Module Federation).
18
- * When not configured, falls back to `dynamic import()` for ESM-based loading.
19
- */
20
- export declare function use(names: string | string[], callback?: (...modules: unknown[]) => void): Promise<unknown[]>;
package/dist/router.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import type { RouterInterface } from "./types";
2
- /**
3
- * Router with two-phase change confirmation (supports history and hash modes).
4
- *
5
- * @example
6
- * Router.to('/list', { page: 2 });
7
- * const loc = Router.parse();
8
- * const diff = Router.diff();
9
- */
10
- export declare const Router: RouterInterface;
11
- /** Mark framework as booted (called by Framework.boot) */
12
- export declare function markRouterBooted(): void;
13
- /** Get current routing mode */
14
- export declare function getRouteMode(): "history" | "hash";
@@ -1,94 +0,0 @@
1
- define('lark-mvc/runtime', ['exports'], (function (exports) { 'use strict';
2
-
3
- /**
4
- * Lark framework constants.
5
- */
6
- /** Global counter for generating unique IDs */
7
- /** Internal splitter character (U+001E Record Separator, invisible, used as namespace separator).
8
- * Uses String.fromCharCode to survive bundlers that strip control-char literals. */
9
- const SPLITTER = String.fromCharCode(0x1e);
10
- // ============================================================
11
- // Encoding helpers (shared by dom.ts, runtime.ts, updater.ts)
12
- // ============================================================
13
- const HTML_ENT_MAP = {
14
- "&": "amp",
15
- "<": "lt",
16
- ">": "gt",
17
- '"': "#34",
18
- "'": "#39",
19
- "`": "#96",
20
- };
21
- const HTML_ENT_REGEXP = /[&<>"'`]/g;
22
- /** Null-safe String conversion */
23
- function strSafe$1(v) {
24
- return String(v == null ? "" : v);
25
- }
26
- /** HTML entity encoding for safe output */
27
- function encodeHTML(v) {
28
- return String(v == null ? "" : v).replace(HTML_ENT_REGEXP, (m) => "&" + HTML_ENT_MAP[m] + ";");
29
- }
30
- const URI_ENT_MAP = {
31
- "!": "%21",
32
- "'": "%27",
33
- "(": "%28",
34
- ")": "%29",
35
- "*": "%2A",
36
- };
37
- const URI_ENT_REGEXP = /[!')(*]/g;
38
- /** URI-encode with extra character encoding */
39
- function encodeURIExtra(v) {
40
- return encodeURIComponent(strSafe$1(v)).replace(URI_ENT_REGEXP, (m) => URI_ENT_MAP[m]);
41
- }
42
- const QUOTE_ENT_REGEXP = /['"\\]/g;
43
- /** Quote-encode for attribute values */
44
- function encodeQuote(v) {
45
- return strSafe$1(v).replace(QUOTE_ENT_REGEXP, "\\$&");
46
- }
47
- /**
48
- * Template reference function for creating stable keys for objects.
49
- * Stores objects in refData with SPLITTER-prefixed keys.
50
- */
51
- function refFn(ref, value, key) {
52
- const counter = ref[SPLITTER];
53
- for (let i = counter; --i;) {
54
- key = SPLITTER + i;
55
- if (ref[key] === value)
56
- return key;
57
- }
58
- key = SPLITTER + ref[SPLITTER]++;
59
- ref[key] = value;
60
- return key;
61
- }
62
- // export function isCjs(): boolean {
63
- // return typeof module !== "undefined" && typeof module.exports !== "undefined";
64
- // }
65
-
66
- /**
67
- * Template runtime helpers.
68
- *
69
- * Compiled templates import these helpers from `@lark.js/mvc/runtime` instead
70
- * of inlining the implementations. That keeps each compiled `.html` module
71
- * small — no more ~400 bytes of duplicated helper code per template.
72
- *
73
- * The helpers below are aliased to `$strSafe / $encHtml / $encUri / $encQuote /
74
- * $refFn` inside the IIFE that the compiler produces — see `compiler.ts`.
75
- *
76
- * Canonical implementations live in `./common` so that dom.ts, runtime.ts,
77
- * and updater.ts all share a single copy.
78
- */
79
- /** Null-safe `String(value)` — `null`/`undefined` become `""`. */
80
- const strSafe = strSafe$1;
81
- /** HTML-escape a value for safe embedding in markup. */
82
- const encHtml = encodeHTML;
83
- /** Percent-encode a value, with extra characters escaped for stricter URIs. */
84
- const encUri = encodeURIExtra;
85
- /** Backslash-escape quotes and backslashes for attribute string contents. */
86
- const encQuote = encodeQuote;
87
-
88
- exports.encHtml = encHtml;
89
- exports.encQuote = encQuote;
90
- exports.encUri = encUri;
91
- exports.refFn = refFn;
92
- exports.strSafe = strSafe;
93
-
94
- }));
@@ -1,98 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LarkMvc = {}));
5
- })(this, (function (exports) { 'use strict';
6
-
7
- /**
8
- * Lark framework constants.
9
- */
10
- /** Global counter for generating unique IDs */
11
- /** Internal splitter character (U+001E Record Separator, invisible, used as namespace separator).
12
- * Uses String.fromCharCode to survive bundlers that strip control-char literals. */
13
- const SPLITTER = String.fromCharCode(0x1e);
14
- // ============================================================
15
- // Encoding helpers (shared by dom.ts, runtime.ts, updater.ts)
16
- // ============================================================
17
- const HTML_ENT_MAP = {
18
- "&": "amp",
19
- "<": "lt",
20
- ">": "gt",
21
- '"': "#34",
22
- "'": "#39",
23
- "`": "#96",
24
- };
25
- const HTML_ENT_REGEXP = /[&<>"'`]/g;
26
- /** Null-safe String conversion */
27
- function strSafe$1(v) {
28
- return String(v == null ? "" : v);
29
- }
30
- /** HTML entity encoding for safe output */
31
- function encodeHTML(v) {
32
- return String(v == null ? "" : v).replace(HTML_ENT_REGEXP, (m) => "&" + HTML_ENT_MAP[m] + ";");
33
- }
34
- const URI_ENT_MAP = {
35
- "!": "%21",
36
- "'": "%27",
37
- "(": "%28",
38
- ")": "%29",
39
- "*": "%2A",
40
- };
41
- const URI_ENT_REGEXP = /[!')(*]/g;
42
- /** URI-encode with extra character encoding */
43
- function encodeURIExtra(v) {
44
- return encodeURIComponent(strSafe$1(v)).replace(URI_ENT_REGEXP, (m) => URI_ENT_MAP[m]);
45
- }
46
- const QUOTE_ENT_REGEXP = /['"\\]/g;
47
- /** Quote-encode for attribute values */
48
- function encodeQuote(v) {
49
- return strSafe$1(v).replace(QUOTE_ENT_REGEXP, "\\$&");
50
- }
51
- /**
52
- * Template reference function for creating stable keys for objects.
53
- * Stores objects in refData with SPLITTER-prefixed keys.
54
- */
55
- function refFn(ref, value, key) {
56
- const counter = ref[SPLITTER];
57
- for (let i = counter; --i;) {
58
- key = SPLITTER + i;
59
- if (ref[key] === value)
60
- return key;
61
- }
62
- key = SPLITTER + ref[SPLITTER]++;
63
- ref[key] = value;
64
- return key;
65
- }
66
- // export function isCjs(): boolean {
67
- // return typeof module !== "undefined" && typeof module.exports !== "undefined";
68
- // }
69
-
70
- /**
71
- * Template runtime helpers.
72
- *
73
- * Compiled templates import these helpers from `@lark.js/mvc/runtime` instead
74
- * of inlining the implementations. That keeps each compiled `.html` module
75
- * small — no more ~400 bytes of duplicated helper code per template.
76
- *
77
- * The helpers below are aliased to `$strSafe / $encHtml / $encUri / $encQuote /
78
- * $refFn` inside the IIFE that the compiler produces — see `compiler.ts`.
79
- *
80
- * Canonical implementations live in `./common` so that dom.ts, runtime.ts,
81
- * and updater.ts all share a single copy.
82
- */
83
- /** Null-safe `String(value)` — `null`/`undefined` become `""`. */
84
- const strSafe = strSafe$1;
85
- /** HTML-escape a value for safe embedding in markup. */
86
- const encHtml = encodeHTML;
87
- /** Percent-encode a value, with extra characters escaped for stricter URIs. */
88
- const encUri = encodeURIExtra;
89
- /** Backslash-escape quotes and backslashes for attribute string contents. */
90
- const encQuote = encodeQuote;
91
-
92
- exports.encHtml = encHtml;
93
- exports.encQuote = encQuote;
94
- exports.encUri = encUri;
95
- exports.refFn = refFn;
96
- exports.strSafe = strSafe;
97
-
98
- }));
package/dist/service.d.ts DELETED
@@ -1,173 +0,0 @@
1
- import { Cache } from "./cache";
2
- import { EventEmitter } from "./event-emitter";
3
- import type { AnyFunc, ServiceMetaEntry, ServiceCacheInfo, PendingCacheEntry, PayloadInterface, EventEmitterInterface } from "./types";
4
- /**
5
- * Payload wraps API response data with convenient access methods.
6
- */
7
- export declare class Payload implements PayloadInterface {
8
- /** Payload data */
9
- data: Record<string, unknown>;
10
- /** Internal cache info */
11
- cacheInfo?: ServiceCacheInfo;
12
- constructor(data?: Record<string, unknown>);
13
- /** Get a value from payload data */
14
- get<T = unknown>(key: string): T;
15
- /** Set a value in payload data */
16
- set(keyOrData: string | Record<string, unknown> | ServiceMetaEntry, value?: unknown): PayloadInterface;
17
- }
18
- /**
19
- * Minimal interface describing what serviceSend actually uses
20
- * from a service instance. This avoids coupling to the full
21
- * ServiceInterface which mixes instance and static methods.
22
- */
23
- interface ServiceSendTarget {
24
- destroyed: number;
25
- busy: number;
26
- internals: {
27
- metaList: Record<string, ServiceMetaEntry>;
28
- payloadCache: Cache<Payload>;
29
- pendingCacheKeys: Record<string, PendingCacheEntry>;
30
- syncFn: (payload: Payload, callback: () => void) => void;
31
- staticEmitter: EventEmitter;
32
- };
33
- type: {
34
- get(attrs: Record<string, unknown>, createNew?: boolean): {
35
- entity: Payload;
36
- needsUpdate: boolean;
37
- };
38
- };
39
- enqueue(callback: AnyFunc): unknown;
40
- }
41
- /**
42
- * Service: API request management with caching, deduplication, and queue.
43
- *
44
- * - Service.extend(syncFn, cacheMax?, cacheBuffer?): creates subclass with sync function
45
- * - Service.add(attrs): registers API endpoint metadata
46
- * - new Service().all(attrs, done): fetch all, use cache when available
47
- * - new Service().one(attrs, done): fetch all, callback on each completion
48
- * - new Service().save(attrs, done): fetch all, skip cache (always request)
49
- * - enqueue/dequeue: task queue for sequential async operations
50
- * - destroy: cancel pending requests
51
- *
52
- * Per-type state (metaList, payloadCache, pendingCacheKeys, syncFn, staticEmitter)
53
- * is stored as static class properties. When extend() creates a subclass,
54
- * each subclass gets its own copies of these static properties, ensuring
55
- * isolation between different Service types.
56
- */
57
- export declare class Service {
58
- /** Service instance ID */
59
- id: string;
60
- /** Whether service is busy (1 = busy) */
61
- busy: number;
62
- /** Whether service is destroyed (1 = destroyed) */
63
- destroyed: number;
64
- /** Task queue for sequential operations */
65
- taskQueue: AnyFunc[];
66
- /** Previous dequeue arguments */
67
- prevArgs: unknown[];
68
- /** Instance event emitter */
69
- private _emitter;
70
- constructor();
71
- /** Instance event emitter (public accessor) */
72
- get emitter(): EventEmitterInterface;
73
- /**
74
- * Get internals object for serviceSend compatibility.
75
- * References per-type static state from the current class.
76
- */
77
- get internals(): ServiceSendTarget["internals"];
78
- /**
79
- * Get type reference (the constructor) for serviceSend compatibility.
80
- * Static methods like get/create are accessible via the constructor.
81
- */
82
- get type(): ServiceSendTarget["type"];
83
- /**
84
- * Fetch all endpoints, callback when all complete.
85
- * Uses cache when available.
86
- */
87
- all(attrs: string | Record<string, unknown> | (string | Record<string, unknown>)[], done: AnyFunc): this;
88
- /**
89
- * Fetch all endpoints, callback on each completion.
90
- */
91
- one(attrs: string | Record<string, unknown> | (string | Record<string, unknown>)[], done: AnyFunc): this;
92
- /**
93
- * Fetch all endpoints, skip cache (always request).
94
- */
95
- save(attrs: string | Record<string, unknown> | (string | Record<string, unknown>)[], done: AnyFunc): this;
96
- /**
97
- * Enqueue a task for sequential execution.
98
- */
99
- enqueue(callback: AnyFunc): this;
100
- /**
101
- * Dequeue and execute the next task in queue.
102
- */
103
- dequeue(...args: unknown[]): void;
104
- /**
105
- * Destroy the service instance.
106
- * After destruction, no new requests can be sent.
107
- */
108
- destroy(): void;
109
- on(event: string, handler: AnyFunc): this;
110
- off(event: string, handler?: AnyFunc): this;
111
- fire(event: string, data?: Record<string, unknown>): this;
112
- /** Per-type metadata registry */
113
- static _metaList: Record<string, ServiceMetaEntry>;
114
- /** Per-type payload cache (LFU with frequency eviction) */
115
- static _payloadCache: Cache<Payload>;
116
- /** Per-type pending cache keys for deduplication */
117
- static _pendingCacheKeys: Record<string, PendingCacheEntry>;
118
- /** Per-type sync function */
119
- static _syncFn: (payload: Payload, callback: () => void) => void;
120
- /** Per-type static event emitter */
121
- static _staticEmitter: EventEmitter<unknown>;
122
- /** Per-type cache max size */
123
- static _cacheMax: number;
124
- /** Per-type cache buffer size */
125
- static _cacheBuffer: number;
126
- /**
127
- * Register API endpoint metadata.
128
- */
129
- static add(attrs: ServiceMetaEntry | ServiceMetaEntry[]): void;
130
- /**
131
- * Get metadata for an API endpoint.
132
- */
133
- static meta(attrs: string | Record<string, unknown>): ServiceMetaEntry;
134
- /**
135
- * Create a Payload for an API request.
136
- */
137
- static create(attrs: Record<string, unknown>): Payload;
138
- /**
139
- * Get or create a Payload for an API request.
140
- */
141
- static get(attrs: Record<string, unknown>, createNew?: boolean): {
142
- entity: Payload;
143
- needsUpdate: boolean;
144
- };
145
- /**
146
- * Get cached Payload if available and not expired.
147
- */
148
- static cached(attrs: Record<string, unknown>): Payload | undefined;
149
- /**
150
- * Clear cached payloads by endpoint name.
151
- */
152
- static clear(names: string | string[]): void;
153
- static on(event: string, handler: AnyFunc): void;
154
- static off(event: string, handler?: AnyFunc): void;
155
- static fire(event: string, data?: Record<string, unknown>): void;
156
- /**
157
- * Create a new Service subclass with a custom sync function.
158
- *
159
- * Each subclass gets its OWN copies of every per-type static field
160
- * (`_metaList`, `_payloadCache`, `_pendingCacheKeys`, `_syncFn`,
161
- * `_staticEmitter`, `_cacheMax`, `_cacheBuffer`) via `static override`.
162
- * This is intentional: it ensures that endpoint metadata, cache state,
163
- * in-flight dedup keys, and event subscribers are fully isolated between
164
- * different Service types, even when one extends another.
165
- *
166
- * **Do not refactor these `static override` declarations away** — sharing
167
- * them through prototype inheritance would let endpoints registered on one
168
- * subclass leak into another, and the LFU cache evictions of one type
169
- * would race with those of another.
170
- */
171
- static extend(this: typeof Service, newSyncFn: (payload: Payload, callback: () => void) => void, newCacheMax?: number, newCacheBuffer?: number): typeof Service;
172
- }
173
- export {};
package/dist/state.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import type { StateInterface } from "./types";
2
- /** Mark framework as booted (called from Framework.boot) */
3
- export declare function markBooted(): void;
4
- /**
5
- * Observable in-memory data object.
6
- * Provides get/set/digest/diff/clean methods for cross-view data sharing.
7
- */
8
- export declare const State: StateInterface;
package/dist/store.d.ts DELETED
@@ -1,60 +0,0 @@
1
- /**
2
- * @lark.js/mvc Store
3
- *
4
- * Zustand-aligned state management for Lark MVC.
5
- *
6
- * Core API:
7
- * - create(name, creator): define a store with (set, get) => initialState
8
- * - store.getState(): read current state snapshot
9
- * - store.setState(partial | updater): shallow-merge state and notify listeners
10
- * - store.subscribe(listener): listen for state changes
11
- * - store.destroy(): tear down the store
12
- * - computed(deps, fn): derived state that auto-recomputes when deps change
13
- * - bindStore(view, store, selector?): Lark View lifecycle binding
14
- */
15
- type Listener<T> = (state: T, prevState: T) => void;
16
- export interface StoreApi<T = Record<string, unknown>> {
17
- getState(): T;
18
- setState(partial: Partial<T> | ((prev: T) => Partial<T>)): void;
19
- subscribe(listener: Listener<T>): () => void;
20
- destroy(): void;
21
- }
22
- type StateCreator<T> = (set: (partial: Partial<T> | ((prev: T) => Partial<T>)) => void, get: () => T) => T;
23
- /**
24
- * Declare a derived (computed) store property.
25
- *
26
- * Usage inside a `create` creator:
27
- * ```ts
28
- * const store = create("counter", (set, get) => ({
29
- * count: 0,
30
- * doubled: computed(["count"], () => get().count * 2),
31
- * }));
32
- * ```
33
- *
34
- * `deps` lists the state keys the computed reads. Whenever any dep changes
35
- * via `setState`, the computed re-evaluates before listeners are notified.
36
- * Writes to a computed key via `setState` are silently ignored.
37
- */
38
- export declare function computed<T>(deps: readonly string[], fn: () => T): T;
39
- export declare function create<T>(name: string, creator: StateCreator<T>): StoreApi<T>;
40
- /**
41
- * Bind a store to a Lark View. Subscribes to state changes and auto-unsubscribes
42
- * when the view is destroyed.
43
- *
44
- * @param view - Lark View instance (must have updater.set/digest and on("destroy"))
45
- * @param store - Store created via `create()`
46
- * @param selector - Optional function to pick a subset of state for the updater.
47
- * If omitted, only non-function state keys are forwarded.
48
- * @returns unsubscribe function
49
- *
50
- * @example
51
- * ```ts
52
- * // Observe all state
53
- * bindStore(this, useCountStore);
54
- *
55
- * // Observe with selector
56
- * bindStore(this, useCountStore, (s) => ({ count: s.count }));
57
- * ```
58
- */
59
- export declare function bindStore<T>(view: unknown, store: StoreApi<T>, selector?: (state: T) => Record<string, unknown>): () => void;
60
- export {};