UNPKG

1.45 kBTypeScriptView Raw
1import { GoogleSignInOptions, GoogleSignInAuthResult } from './GoogleSignIn.types';
2import GoogleUser from './GoogleUser';
3export declare const ERRORS: any, SCOPES: any, TYPES: any;
4export declare function allowInClient(): void;
5export declare function getCurrentUser(): GoogleUser | null;
6export declare function askForPlayServicesAsync(): Promise<boolean>;
7export declare function getPlayServiceAvailability(shouldAsk?: boolean): Promise<boolean>;
8export declare function initAsync(options?: GoogleSignInOptions): Promise<void>;
9export declare function isSignedInAsync(): Promise<boolean>;
10export declare function isConnectedAsync(): Promise<boolean>;
11export declare function signInSilentlyAsync(): Promise<GoogleUser | null>;
12export declare function signInAsync(): Promise<GoogleSignInAuthResult>;
13export declare function signOutAsync(): Promise<void>;
14export declare function disconnectAsync(): Promise<void>;
15export declare function getCurrentUserAsync(): Promise<GoogleUser | null>;
16export declare function getPhotoAsync(size?: number): Promise<string | null>;
17export { default as GoogleAuthData } from './GoogleAuthData';
18export { default as GoogleAuthentication } from './GoogleAuthentication';
19export { default as GoogleIdentity } from './GoogleIdentity';
20export { default as GoogleUser } from './GoogleUser';
21export { GoogleSignInType, GoogleSignInOptions, GoogleSignInAuthResultType, GoogleSignInAuthResult, } from './GoogleSignIn.types';