import { RequestClient, MultiStatusResponse, JSONLikeObject, AudienceMembership } from '@segment/actions-core';
import type { Settings, AudienceSettings } from '../generated-types';
import type { Payload } from './generated-types';
import { PayloadMap, Operation, UploadToCohortJSON, PossibleErrorCodes } from './types';
import { IDType } from '../types';
export declare function send(request: RequestClient, payloads: Payload[], settings: Settings, isBatch: boolean, audienceSettings?: AudienceSettings, audienceMemberships?: AudienceMembership[]): Promise<MultiStatusResponse | undefined>;
export declare function failAllPayloads(payloads: Payload[], msResponse: MultiStatusResponse, isBatch: boolean, message: string): MultiStatusResponse;
export declare function getJSON(map: PayloadMap, id_type: IDType, audienceId: string, msResponse: MultiStatusResponse, operation: Operation, isBatch: boolean): UploadToCohortJSON | undefined;
export declare function getIds(map: PayloadMap, id_type: IDType, msResponse: MultiStatusResponse, isBatch: boolean): string[];
export declare function getId(payload: Payload, id_type: IDType): string | undefined;
export declare function handleError(payload: Payload, msResponse: MultiStatusResponse, index: number, isBatch: boolean, errormessage: string, errortype: PossibleErrorCodes, sent?: JSONLikeObject): void;
export declare function sendRequest(request: RequestClient, map: PayloadMap, msResponse: MultiStatusResponse, json: UploadToCohortJSON, id_type: IDType, endpoint: string, isBatch: boolean): Promise<void>;
export declare function getIdTypeName(id_type: IDType): string;
