import { TIDAuthState } from './state';
import { TIDUser } from '../TIDClient';
/**
 * Actions available to manage the state of the TID Provider
 */
type Action = {
    type: 'INIT';
    user?: TIDUser;
} | {
    type: 'LOGOUT';
} | {
    type: 'GET_ACCESS_TOKEN_COMPLETE';
    user?: TIDUser;
} | {
    type: 'GET_TOKENS_COMPLETE';
    user?: TIDUser;
} | {
    type: 'HANDLE_CALLBACK_COMPLETE';
    user?: TIDUser;
} | {
    type: 'ERROR';
    error: Error;
};
/**
 * This function manage the state and logic of the TID Provider
 * @param {TIDAuthState} state - Current state of the application
 * @param {Action} action - Action to execute
 * @return {TIDAuthState} Empty promise
 */
export declare const reducer: (state: TIDAuthState, action: Action) => TIDAuthState;
export {};
