@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
10 lines (9 loc) • 536 B
TypeScript
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>;
}