import { SignInIDPErrors } from '../../mutations';
export type IDPResponseState = {
    type: 'nothing';
} | {
    type: 'processing';
} | {
    type: 'succeed';
} | {
    type: 'failed';
    error: HandleIdpResponseError;
};
export type HandleIdpResponseError = SignInIDPErrors | 'INVALID_LOCAL_STATE';
export interface UseHandleIDPResponseProps {
    onLogin?: () => void;
    onError?: (error: HandleIdpResponseError) => void;
}
export declare const useHandleIDPResponse: ({ onLogin, onError }: UseHandleIDPResponseProps) => IDPResponseState;
//# sourceMappingURL=useHandleIDPResponse.d.ts.map