import type { CcRequestParams } from '../../types/request.types.js'; /** * Abstract base class for Clever Cloud authentication mechanisms. * Provides a common interface for different authentication strategies * including API tokens and OAuth. * * This class defines the contract for: * - Applying authentication to request parameters * - Applying authentication to URLs * - Retrieving authentication tokens */ export declare abstract class CcAuth { /** * Applies authentication headers to request parameters. * Adds an Authorization header with the authentication token. * * @param requestParams - The request parameters to modify */ applyOnRequestParams(requestParams: Partial): void; /** * Applies authentication to a URL by adding an authorization query parameter. * The token is base64 encoded before being added to the URL. * * @param url - The URL to modify with authentication */ applyOnUrl(url: URL): void; /** * Returns the authentication token in the appropriate format for the auth strategy. * Must be implemented by concrete authentication classes. * * @returns The formatted authentication token */ abstract getAuthorization(): string; } //# sourceMappingURL=cc-auth.d.ts.map