UNPKG

@actyx/sdk

Version:
15 lines (14 loc) 867 B
import { OffsetsResponse } from '../internal_common'; import { ActyxOpts, AppManifest } from '../types'; export declare const GlobalInternalSymbol: unique symbol; export declare type GlobalInternalSymbol = typeof GlobalInternalSymbol; export declare const getApiLocation: (host?: string | undefined, port?: number | undefined) => string; export declare const getToken: (opts: ActyxOpts, manifest: AppManifest) => Promise<string>; export declare const checkToken: (opts: ActyxOpts, token: string) => Promise<boolean>; export declare const v2getNodeId: (config: ActyxOpts) => Promise<string | null>; export declare const mkHeaders: (token: string) => { Accept: string; 'Content-Type': string; Authorization: string; }; export declare const v2WaitForSwarmSync: (config: ActyxOpts, token: string, getOffsets: () => Promise<OffsetsResponse>) => Promise<void>;