type TokenChangeCallback = (accessToken: string) => void; /** * This helper allows updating the search token at any point in the SSR workflow—before or after * static state creation, and before or after hydration. */ export declare function createAccessTokenManager(initialToken: string): { /** * Gets the current access token. */ getAccessToken(): string; /** * Sets the access token, updating both configuration and active engines. */ setAccessToken(accessToken: string): void; /** * Registers a callback function to be invoked when the access token changes. * If there's a queued token, the callback will be invoked immediately. * * @param callback - Invoked with the new token on every subsequent change. * @param owner - The object whose lifetime bounds the subscription (the engine). * @returns An unsubscribe function that removes the callback immediately. */ registerCallback(callback: TokenChangeCallback, owner: object): () => void; }; export {};