UNPKG

@mesh-tech/mesh-cli

Version:

CLI for Mesh platform development utilities

17 lines (16 loc) 645 B
type CtxConfig = { issuer?: string; vpnJoinBroker?: string; } | null; export declare function resolveVpnJoinBroker(context: string, getCfg?: (c: string) => CtxConfig): string | null; export declare function deriveVpnJoinBroker(context: string, getCfg?: (c: string) => CtxConfig): string | null; export interface MintDeps { getValidToken: (context: string) => Promise<string | null>; fetchFn?: typeof fetch; } export declare function mintPreAuthKey(context: string, brokerUrl: string, deps: MintDeps): Promise<{ authKey: string; loginServer: string; } | null>; export declare function realMintDeps(): MintDeps; export {};