import { CcClient } from '../../lib/cc-client.js'; import type { CcStream } from '../../lib/stream/cc-stream.js'; import type { CcRequestConfigPartial } from '../../types/request.types.js'; import type { CcApiCompositeCommand, CcApiSimpleCommand, CcApiStreamCommand } from './lib/cc-api-command.js'; import { ResourceIdResolver } from './lib/resource-id-resolver.js'; import type { CcApiClientConfig, CcApiType } from './types/cc-api.types.js'; /** * Clever Cloud API client implementation. * Extends the base CcClient with specific handling for resource ID resolution * and authentication methods (OAuth v1 PLAINTEXT and API tokens). * * @example * // Create client with OAuth authentication * const client = new CcApiClient({ * authMethod: { * type: 'oauth-v1', * oauthTokens: { consumerKey: 'key', consumerSecret: 'secret' } * } * }); * * // Create client with API token authentication * const client = new CcApiClient({ * authMethod: { * type: 'api-token', * apiToken: 'your-token' * } * }); * * // Send a command * const result = await client.send(new GetApplicationCommand('app_123')); */ export declare class CcApiClient extends CcClient { #private; /** * Creates a new Clever Cloud API client instance * * @param config - Client configuration including auth method and optional settings */ constructor(config?: CcApiClientConfig); /** * Resource ID resolver used by this client. * Exposes helpers to resolve owner IDs and translate between addonId and realAddonId. */ get resourceIdResolver(): ResourceIdResolver; /** * Transforms command parameters by resolving resource IDs. * This method is called before sending a command to resolve any resource IDs * (owner IDs, addon IDs) to their proper format. * * @param command - The command being sent * @param requestConfig - Optional request configuration * @returns The transformed command parameters */ protected _transformCommandParams(command: CcApiSimpleCommand | CcApiCompositeCommand, requestConfig?: CcRequestConfigPartial): Promise; /** * Transforms command parameters by resolving resource IDs. * This method is called before sending a stream command to resolve any resource IDs * (owner IDs, addon IDs) to their proper format. * * @param command - The command being sent * @param requestConfig - Optional request configuration * @returns The transformed command parameters */ protected _transformStreamParams(command: CcApiStreamCommand, requestConfig?: CcRequestConfigPartial): Promise; } //# sourceMappingURL=cc-api-client.d.ts.map