UNPKG

1.04 kBTypeScriptView Raw
1import { AuthenticationResult, PopupConfigOptions } from './global';
2export declare const parseQueryResult: (queryString: string) => AuthenticationResult;
3export declare const runIframe: (authorizeUrl: string, eventOrigin: string, timeoutInSeconds?: number) => Promise<AuthenticationResult>;
4export declare const openPopup: (url: string) => Window;
5export declare const runPopup: (config: PopupConfigOptions) => Promise<AuthenticationResult>;
6export declare const getCrypto: () => Crypto;
7export declare const getCryptoSubtle: () => any;
8export declare const createRandomString: () => string;
9export declare const encode: (value: string) => string;
10export declare const decode: (value: string) => string;
11export declare const createQueryParams: (params: any) => string;
12export declare const sha256: (s: string) => Promise<any>;
13export declare const urlDecodeB64: (input: string) => string;
14export declare const bufferToBase64UrlEncoded: (input: number[] | Uint8Array) => string;
15export declare const validateCrypto: () => void;