/** * Fetch Campaign Statistics Service * Retrieves statistical data for a specific campaign */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; /** * Fetch campaign statistics * Uses endpoint: GET /campaigns/:id/stats * * @param campaignId - The campaign ID * @param options - Optional service options (client override, config overrides) * @returns Promise * * @example * ```typescript * // Basic usage * const stats = await fetchCampaignStats('camp-123'); * // Returns: { views: 1000, clicks: 150, conversions: 30, ... } * * // With timeout override * const stats = await fetchCampaignStats('camp-123', { * apiConfig: { timeout: 8000 } * }); * ``` * * @throws {ApiPackageError} When the request fails or campaign is not found */ export declare function fetchCampaignStats(campaignId: string, options?: ServiceOptions): Promise; //# sourceMappingURL=fetchCampaignStats.d.ts.map