/** * Update Campaign Service * Updates an existing campaign with new data */ import type { PatchCampaignDTO } from '@plyaz/types/campaign'; import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; /** * Update a campaign * Uses endpoint: PUT /campaigns/:id * * @param campaignId - The campaign ID to update * @param data - The update data * @param options - Optional service options (client override, config overrides) * @returns Promise * * @example * ```typescript * // Basic usage * const updated = await updateCampaign('camp-123', { * name: 'Updated Campaign Name', * description: 'New description' * }); * * // With timeout override * const updated = await updateCampaign( * 'camp-123', * { status: 'active' }, * { apiConfig: { timeout: 10000 } } * ); * ``` * * @throws {ApiPackageError} When the request fails or campaign is not found */ export declare function updateCampaign(campaignId: string, data: PatchCampaignDTO, options?: ServiceOptions): Promise; //# sourceMappingURL=updateCampaign.d.ts.map