/** * Fetch Single Campaign Service * Retrieves a single campaign by ID from the API */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; /** * Fetch a single campaign by ID * Uses endpoint: GET /campaigns/:id * * @param campaignId - The campaign ID to fetch * @param options - Optional service options (client override, config overrides) * @returns Promise * * @example * ```typescript * // Basic usage * const campaign = await fetchCampaign('camp-123'); * * // With temporary config override * const campaign = await fetchCampaign('camp-123', { * apiConfig: { timeout: 5000 } * }); * * // With custom client and config * const campaign = await fetchCampaign('camp-123', { * apiClient: customClient, * apiConfig: { retry: { attempts: 5, delay: 1000 } } * }); * ``` * * @throws {ApiPackageError} When the request fails or campaign is not found */ export declare function fetchCampaign(campaignId: string, options?: ServiceOptions): Promise; //# sourceMappingURL=fetchCampaign.d.ts.map