import { DxDocument } from '@digitaix/types'; export interface DocumentTransformer { collectionPath: string; send: (document: T) => any; receive: (document: any) => T; } export declare function MapToArray(...fieldPaths: string[]): (originalDocument: any) => any; export declare function ArrayToMap(...fieldPaths: string[]): (originalDocument: any) => any; export declare class DocumentTransformerService { transformers: Map>; constructor(transformers: any | null); send(collectionPath: string, document: D): any; receive(collectionPath: string, document: any): D; }