import type { RefObject } from 'react'; import { UserManager } from 'oidc-client-ts'; import type { KeycloakAuthConfig, StorageType } from '../types/auth.types.js'; /** * INTERNAL TEST USE ONLY: Reset the warning tracking state. This is called between tests to clear prior state. * @internal */ export declare function __resetWarningState(): void; /** * Creates and maintains a UserManager instance. * Handles storage setup (user vs state, localStorage vs sessionStorage). * * @param settings - Keycloak/OIDC settings used to construct the `UserManager` * @param scope - OAuth2/OIDC scopes to request * @param storageType - Where to persist the OIDC user session (`'sessionStorage'` or `'localStorage'`) * @returns A ref holding the singleton `UserManager` instance for the component's lifetime * @internal For internal use by AuthProvider only. */ export declare const useUserManager: (settings: KeycloakAuthConfig, scope: string, storageType: StorageType) => RefObject; //# sourceMappingURL=useUserManager.d.ts.map