UNPKG

@voice-ping/cognitive-services-speech

Version:

VoicePing Cognitive Services Speech SDK for JavaScript forked from Microsoft

10 lines (9 loc) 536 B
import { Promise } from "../common/Exports"; import { AuthInfo, IAuthentication } from "./IAuthentication"; export declare class CognitiveTokenAuthentication implements IAuthentication { private privFetchCallback; private privFetchOnExpiryCallback; constructor(fetchCallback: (authFetchEventId: string) => Promise<string>, fetchOnExpiryCallback: (authFetchEventId: string) => Promise<string>); fetch: (authFetchEventId: string) => Promise<AuthInfo>; fetchOnExpiry: (authFetchEventId: string) => Promise<AuthInfo>; }