import React from 'react';
import { AuthClass } from '@aws-amplify/auth';
import { CognitoUser } from 'amazon-cognito-identity-js';
export declare const NOT_INSIDE_AMPLIFY_PROVIDER = "No AuthenticationContext. Did you forget to wrap your app in ?";
/**
* This is written specifically for Amplify/Hub, however, you can replace
* this provider with another provider (say ) that replicates
* the API above and everything using useAuth and useUser should just work!
*/
export declare const AmplifyAuthProvider: React.FC;
export declare function useAuth(): AuthClass;
export declare function useAuthProvider(): {
/** Signs in either using username and password, or federated if a provider is passed. */
login: ({ username, password, provider }: any) => Promise;
logout: () => Promise;
checkAuth: () => Promise;
checkError: () => Promise;
/** Providers permissions for the whole app. identityId is used with S3Input. */
getPermissions: () => Promise<{
claims: {
identityId: string;
};
}>;
};
export declare function useUser(): CognitoUser | undefined;