UNPKG

1.31 kBTypeScriptView Raw
1import { AuthenticationResult, PopupConfigOptions } from './global';
2export declare const parseAuthenticationResult: (queryString: string) => AuthenticationResult;
3export declare const runIframe: (authorizeUrl: string, eventOrigin: string, timeoutInSeconds?: number) => Promise<AuthenticationResult>;
4export declare const openPopup: (url: string) => Window | null;
5export declare const runPopup: (config: PopupConfigOptions) => Promise<AuthenticationResult>;
6export declare const getCrypto: () => Crypto;
7export declare const createRandomString: () => string;
8export declare const encode: (value: string) => string;
9export declare const decode: (value: string) => string;
10export declare const createQueryParams: ({ clientId: client_id, ...params }: any) => string;
11export declare const sha256: (s: string) => Promise<any>;
12export declare const urlDecodeB64: (input: string) => string;
13export declare const bufferToBase64UrlEncoded: (input: number[] | Uint8Array) => string;
14export declare const validateCrypto: () => void;
15/**
16 * @ignore
17 */
18export declare const getDomain: (domainUrl: string) => string;
19/**
20 * @ignore
21 */
22export declare const getTokenIssuer: (issuer: string | undefined, domainUrl: string) => string;
23export declare const parseNumber: (value: any) => number | undefined;