import { MappedDataSource } from "./MappedDataSource"; import { Dict } from "./utils/util-types"; import { StoreQueryParams, PrimaryRowMapper } from "./SingleSourceQueryOperationResolver"; export interface ReverseMapperTree { readonly primaryRowMappers: PrimaryRowMapper[]; readonly relationMappers: Dict; } /** * Utility to reverse map flattened tabular resultset obtained from a database query to a hierarchy of entities */ export declare class ReverseMapper { private storeParams; tree: ReverseMapperTree; constructor(storeParams: StoreQueryParams); reverseMap(rows: Dict[], shallow?: boolean): Promise; private populateReverseTree; private getImmediateColKeys; private getAllDescendantColKeys; private reverseMapQueryResults; private extractEntitiesAtPath; }