/** * Custom hook to handle OAuth2 logout and redirection. * * @param {OAuth2Config} config - Configuration object containing OAuth2 enabled apps flag and initialisation flag. * @param {(oauthUrl: string) => Promise} WSLogoutAndRedirect - Function to handle logout and redirection. * @returns {{ OAuth2Logout: () => Promise }} - Object containing the OAuth2Logout function. * @deprecated Please use OAuth2Logout function instead of this hook from the `@deriv-com/auth-client` package. */ export declare const useOAuth2: (WSLogoutAndRedirect: () => Promise) => { OAuth2Logout: () => Promise; };