import { Payload } from './generated-types';
import { RequestClient, MultiStatusResponse, ErrorCodes, Features } from '@segment/actions-core';
import type { JSONLikeObject, AudienceMembership } from '@segment/actions-core';
import { StatsContext } from '@segment/actions-core/destination-kit';
import { PayloadMap, AudienceJSON, FacebookDataRow } from './types';
export declare function send(request: RequestClient, payloads: Payload[], isBatch: boolean, audienceMemberships?: AudienceMembership[], hookOutputs?: {
    retlOnMappingSave?: {
        outputs?: {
            audienceId?: string;
        };
    };
}, features?: Features, statsContext?: StatsContext): Promise<MultiStatusResponse | void>;
export declare function sendRequest(request: RequestClient, audienceId: string, map: PayloadMap, msResponse: MultiStatusResponse, method: 'POST' | 'DELETE', isBatch: boolean, features?: Features, statsContext?: StatsContext): Promise<void>;
export declare function setErrorResponse(msResponse: MultiStatusResponse, payload: Payload, status: number, index: number, isBatch: boolean, errormessage: string, errortype: keyof typeof ErrorCodes | string, sent?: JSONLikeObject): void;
export declare function returnErrorResponse(msResponse: MultiStatusResponse, payloads: Payload[], isBatch: boolean, errormessage: string, errortype: keyof typeof ErrorCodes): MultiStatusResponse;
export declare function getAudienceId(payload: Payload, hookOutputs?: {
    retlOnMappingSave?: {
        outputs?: {
            audienceId?: string;
        };
    };
}): string;
export declare function getJSON(payloads: Payload[]): AudienceJSON;
export declare function validate(payloads: Payload[], audienceId: unknown, audienceMemberships?: AudienceMembership[]): string | undefined;
export declare function getData(payloads: Payload[]): FacebookDataRow[];
export declare function normalizePhone(value: string): string;
export declare function normalizeGender(value: string): string;
export declare function normalizeMonth(value: string): string;
export declare function normalizeName(value: string): string;
export declare function normalizeCity(value: string): string;
export declare function normalizeState(value: string): string;
export declare function normalizeZip(value: string): string;
export declare function normalizeCountry(value: string): string;
