/** * Join Campaign Service * Allows a user to join/participate in a campaign */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; /** * Join a campaign * Uses endpoint: POST /campaigns/:id/join * * @param campaignId - The campaign ID to join * @param options - Optional service options (client override, config overrides) * @returns Promise - Join confirmation with participant details * * @example * ```typescript * // Basic usage * const result = await joinCampaign('camp-123'); * // Returns: { success: true, participantId: '...', joinedAt: '...' } * * // With custom config * const result = await joinCampaign('camp-123', { * apiConfig: { timeout: 10000 } * }); * ``` * * @throws {ApiPackageError} When the request fails or user is already a participant */ export declare function joinCampaign(campaignId: string, options?: ServiceOptions): Promise; //# sourceMappingURL=joinCampaign.d.ts.map