import type { TokenResult } from '@axinom/mosaic-id-utils'; /** * This function authenticates a service account. * @param authEndpoint URL for id-service authEndpoint. * @param clientId Client ID of the service account. * @param clientSecret Client secret of the service account. * @returns {TokenResult} AccessToken for the service account. */ export declare const getServiceAccountToken: (authEndpoint: string, clientId: string, clientSecret: string) => Promise; /** * This function authenticates a managed service account. * @param authEndpoint URL for id-service authEndpoint. * @param clientId Client ID of the managed service account. * @param clientSecret Client secret of the managed service account. * @param targetTenantId Tenant ID to be used in resulting AccessToken. If not provided, Root Tenant ID will be used. * @param targetEnvironmentId Environment ID to be used in resulting AccessToken. If not provided, Root Environment ID will be used. * @returns {TokenResult} AccessToken for the managed service account. */ export declare const getManagedServiceAccountToken: (authEndpoint: string, clientId: string, clientSecret: string, targetTenantId?: string, targetEnvironmentId?: string) => Promise; /** * This function authenticates a managed service account and returns * a managed service access token scoped to the tenant/environment * of the passed-in Management JWT. * * @param authEndpoint * @param clientId * @param clientSecret * @param managementJWT * @returns */ export declare const getScopedManagedServiceAccountToken: (authEndpoint: string, clientId: string, clientSecret: string, managementJWT: string) => Promise; //# sourceMappingURL=index.d.ts.map