import { type TokenCredential } from '@azure/identity'; import type { LoginMethod } from '../types/LoginMethod.js'; import type { TaskReporter } from '@ms-cloudpack/task-reporter'; import type EventEmitter from 'events'; import type { TelemetryClient } from '@ms-cloudpack/telemetry'; /** * Gets a credential for the given login method. * If the login method is 'azure-cli', it will return an AzureCliCredential. * Otherwise, it will return an InteractiveBrowserCredential or a DeviceCodeCredential with persistent token settings. * If an authentication record has never been saved before, it will authenticate the credential and save the authentication record. */ export declare function getCredential(options: { loginMethod: LoginMethod; cachePath: string; tenantId?: string; }, context: { reporter: TaskReporter; azureLogger: EventEmitter; telemetryClient: TelemetryClient; }): Promise; //# sourceMappingURL=getCredential.d.ts.map