UNPKG

993 BTypeScriptView Raw
1import { Getter, GetSupportedPlatformInfoAsyncParams, GetSupportedPlatformInfoSyncParams, GetSupportedPlatformInfoFunctionsParams } from './privateTypes';
2export declare function clearMemo(): void;
3/**
4 * function used to get desired info synchronously — with optional memoization
5 * @param param0
6 */
7export declare function getSupportedPlatformInfoSync<T>({ getter, supportedPlatforms, defaultValue, memoKey, }: GetSupportedPlatformInfoSyncParams<T>): T;
8/**
9 * function used to get desired info asynchronously — with optional memoization
10 * @param param0
11 */
12export declare function getSupportedPlatformInfoAsync<T>({ getter, supportedPlatforms, defaultValue, memoKey, }: GetSupportedPlatformInfoAsyncParams<T>): Promise<T>;
13/**
14 * function that returns array of getter functions [async, sync]
15 * @param param0
16 */
17export declare function getSupportedPlatformInfoFunctions<T>({ syncGetter, ...asyncParams }: GetSupportedPlatformInfoFunctionsParams<T>): [Getter<Promise<T>>, Getter<T>];