import { ProtocolType } from './protocols'; import { ServiceConnection } from './serviceConnectionUtils'; /** * Copy the credential provider (netcore and netfx) to the user profile directory * This function is only used by the NuGet Authenticate task */ export declare function installCredProviderToUserProfile(overwrite: boolean, isNuGetAuthenticateV0?: boolean): Promise; export declare function getUserProfileNuGetPluginsDir(): string; /** * Configure the credential provider to provide credentials for feeds within the pipeline's organization, * as well as for any provided service connections. */ export declare function configureCredProvider(protocol: ProtocolType, serviceConnections: ServiceConnection[]): Promise; /** * Configure credentials for the given feed using the provided 'Azure Devops' service connection. * Only external feeds are supported, will throw if the feed provided is internal. */ export declare function configureEntraCredProvider(protocol: ProtocolType, entraWifServiceConnectionName: string, feedUrl: string | undefined): Promise; /** * Configure the credential provider to provide credentials for feeds within the pipeline's organization, * using VSS_NUGET_URI_PREFIXES and VSS_NUGET_ACCESSTOKEN variables to do so. * If an AzureDevops Service Connection is provided, it will be used to aquire an access token. * Otherwise, the system access token will be used. */ export declare function configureCredProviderForSameOrganizationFeeds(protocol: ProtocolType, entraWifServiceConnectionName?: string): Promise; /** * Configure the credential provider to provide credentials for service connections, * using VSS_NUGET_EXTERNAL_FEED_ENDPOINTS to do so. */ export declare function configureCredProviderForServiceConnectionFeeds(serviceConnections: ServiceConnection[]): void; /** * Build the JSON for VSS_NUGET_EXTERNAL_FEED_ENDPOINTS * * Similar to the older NuGetToolRunner2.buildCredentialJson, * but fails hard on ApiKey based service connections instead of silently continuing. */ export declare function buildExternalFeedEndpointsJson(serviceConnections: ServiceConnection[]): string;