/** * Create Campaign Service * Creates a new campaign with the provided data */ import type { CreateCampaignDTO } from '@plyaz/types/campaign'; import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; /** * Create a new campaign * Uses endpoint: POST /campaigns * * @param data - Campaign creation data * @param options - Optional service options (client override, config overrides) * @returns Promise - The created campaign * * @example * ```typescript * // Basic usage * const campaign = await createCampaign({ * name: 'Summer Sale', * description: 'Big discounts on summer items', * startDate: '2025-06-01', * endDate: '2025-08-31', * status: 'draft', * }); * * // With custom timeout * const campaign = await createCampaign(campaignData, { * apiConfig: { timeout: 30000 } * }); * ``` * * @throws {ApiPackageError} When the request fails or validation errors occur */ export declare function createCampaign(data: CreateCampaignDTO, options?: ServiceOptions): Promise; //# sourceMappingURL=createCampaign.d.ts.map