import { AuthParams } from '../types/AuthParams.mjs'; import { AuthQueryParams } from '../types/AuthQueryParams.mjs'; import { AuthSignedParams } from '../types/AuthSignedParams.mjs'; import '@vonage/jwt'; import '../types/SignedHashParams.mjs'; import '../enums/AlgroithmTypes.mjs'; /** * Interface defining the methods for handling various authentication * mechanisms and parameter generation. * * @interface * @extends {AuthParams} */ interface AuthInterface extends AuthParams { /** * Asynchronously generates query parameters for authentication, * optionally merging with provided parameters. * * @template T - Type of the additional parameters to merge with. * @param {T} [params] - Additional parameters to merge with the * generated authentication query parameters. * @returns {Promise} - A promise that resolves * with the merged authentication query parameters. */ getQueryParams(params?: T): Promise; /** * Asynchronously generates a signature hash for authentication, * merging it with provided parameters. * * @template T - Type of the parameters to merge with. * @param {T} params - Parameters to merge with the generated * signature hash. * @returns {Promise} - A promise that resolves * with the merged signature hash and parameters. */ createSignatureHash(params: T): Promise; /** * Asynchronously generates a basic authentication header. * * @returns {Promise} - A promise that resolves with the * generated basic authentication header. */ createBasicHeader(): Promise; /** * Asynchronously generates a bearer authentication header. * * @returns {Promise} - A promise that resolves with the * generated bearer authentication header. */ createBearerHeader(): Promise; } export type { AuthInterface };