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