/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * A builder's view, the page's own (see the module docs). Setting it keeps it for a reload; another page's keeping it * moves nothing here. Every builder under the key in the page shares it. * * @param key - The view's storage key * @param initial - The author's view: what a page with nothing held and nothing kept opens on * @param viewOf - The view storage keeps, read defensively — storage outlives versions, and anything may write it: the * view, taken only in the shape this version writes; `undefined` for anything else. The same function for a key. * @returns The view, and what moves it */ export declare function usePageView(key: string, initial: V, viewOf: (stored: unknown) => V | undefined): { view: V; setView: (next: V) => void; }; //# sourceMappingURL=page-view.d.ts.map