import type { PermissionStructure } from '@axinom/mosaic-id-utils'; import type { ServiceAccountResult } from '../common/types.js'; /** * This function setups a new Service Account with a given permission structure. Depending on the param enforceValidPermissionStructure, if * any invalid permission(s) exists, the method will throw an error. * * @param authEndpoint URL for id-service authEndpoint. * @param accessToken A valid token with permission for DEV_SETUP_SERVICE_ACCOUNT_WITH_PERMISSIONS granted. * @param serviceAccountName Name of the new service account. * @param permissions The list of permissions to be assigned to the new service account. This is an array of shape {serviceId: string, permissions: string[]}. * @param enforceValidPermissionStructure A boolean indicating if the permissions passed should be validated against existing permissions. * @returns {ServiceAccountResult} Client ID and Client Secret. */ export declare const devSetupServiceAccountWithPermissions: (authEndpoint: string, accessToken: string, serviceAccountName: string, permissions: PermissionStructure[], enforceValidPermissionStructure?: boolean) => Promise; /** * This function deletes an existing Service Account given the Client ID. * * @param authEndpoint URL for id-service authEndpoint. * @param accessToken A valid token with permission for DEV_SETUP_SERVICE_ACCOUNT_WITH_PERMISSIONS granted. * @param clientId Client ID of the Service Account to be deleted. * @returns */ export declare const devDeleteServiceAccount: (authEndpoint: string, accessToken: string, clientId: string) => Promise; /** * Update the name of an existing Service Account. * * @param name * @param authEndpoint * @param accessToken * @param clientId * @returns */ export declare const updateServiceAccount: (name: string, authEndpoint: string, accessToken: string, clientId: string) => Promise; //# sourceMappingURL=index.d.ts.map