import { JSONObject, JSONValue } from '@segment/actions-core'; export type ConvertFun = (rawValue: unknown) => JSONValue; export declare const ROOT: unique symbol; export declare const COPY: {}; export declare const DROP: unique symbol; export interface EventMap { fields: Record; unmappedFieldObject?: string | typeof ROOT; defaultObject?: JSONObject; finalize?: (o: JSONObject) => JSONObject; } export interface FieldMap extends Partial { type?: 'array' | 'object'; name?: string | string[]; convert?: ConvertFun; } export type AnalyticsPayload = Record; export declare function mapEvent(map: EventMap, analyticsPayload: AnalyticsPayload): JSONObject; export declare function mapEventHelper(map: EventMap, analyticsPayload: AnalyticsPayload): JSONObject | undefined; export declare function stringify(rawValue: JSONValue): string;