import type { FetchResponse } from 'ofetch';
import { AuthToken } from '../types';
export declare function useKeycloak(): {
    onAuthenticate: (callback: () => void) => void;
    onObtainToken: (callback: (token: AuthToken) => void) => void;
    check: () => Promise<void | FetchResponse<any>> | undefined;
    refreshToken: () => Promise<void>;
    isAuthenticated: () => boolean;
    logout: () => Promise<void>;
};
