import { TransientTab } from "@agimon-ai/po-core/web"; import { Store } from "@tanstack/store"; //#region src/web/stores/transientTabsStore.d.ts type TransientTabsState = Partial>; /** * The tabs plugins opened at runtime, per session. A tab keeps the panel it * was opened with: opening the same id again focuses it rather than swapping * the component out from under React. Nothing here survives a reload, which * is what makes the tabs temporary. */ export declare const transientTabsStore: Store>, never>; export declare function transientTabsOf(state: TransientTabsState, sessionId: string | null): readonly TransientTab[]; export declare function findTransientTab(state: TransientTabsState, sessionId: string | undefined, tabId: string | undefined): TransientTab | undefined; export declare function openTransientTab(sessionId: string, tab: TransientTab): void; /** A live panel can change its target without replacing the component or firing open/close hooks. */ export declare function setTransientTabSession(sessionId: string, tabId: string, targetSessionId: string | undefined, retainComposer: boolean): void; export declare function closeTransientTab(sessionId: string, tabId: string): void; /** A session that left takes its tabs with it. */ export declare function dropTransientTabs(sessionId: string): void; export declare function resetTransientTabs(): void; export declare function useTransientTabs(sessionId: string | null): readonly TransientTab[]; //#endregion export {}; //# sourceMappingURL=transientTabsStore.d.mts.map