/** * The committed-entry mirror of the host's per-history-entry plugin state. The SDK * reconstructs and merges the `{ studioPluginEntryState: { [pluginId]: state } }` * `history.state` namespace so a vetoed Back restores the entry with the slot a * plugin navigation just wrote, rather than clobbering it with null. */ /** * Reconstruct the `history.state` bag a guard-approved plugin navigation LANDS on, so * a subsequently vetoed Back restores the entry with the state it just wrote intact * rather than clobbering it with null. Mirrors the host's * `{ studioPluginEntryState: { [pluginId]: state } }` namespace. TanStack's own * `key`/`__TSR_*` keys are unobservable at this layer, so this is a best-effort bag — * no worse than the `null` it replaces for those keys, and correct for the plugin slot. */ export declare function reconstructEntryState(pluginId: string, state: unknown): unknown; /** * Merge one plugin's state slot into a prior `history.state` bag, preserving BOTH the * router's own keys and every other plugin's slot. Used to refresh the committed entry * after an entry-state update, so a later vetoed Back restores the UPDATED slot instead * of the pre-update one. */ export declare function mergeEntryState(prev: unknown, pluginId: string, state: unknown): unknown; //# sourceMappingURL=entry-state.d.ts.map