import { Platform } from '@ng-frrri/router-middleware/internal'; import { OperatorType } from '../../enums/operator-type.enum'; export declare function populate(options: { /** State path that triggers a population */ from: string; /** State path getting populated */ to: string; /** Path of id property */ idPath?: string; /** State path of collection containing id (foreign vs self) */ idSource?: string; /** Optionally set operations like OperationContext.Many for population */ operations?: Array; /** Params passed to request */ params?: { [key: string]: string | string[]; }; /** * Used to map ids to getMany params when populating. * Default: * ``` * (ids: IdType[], path: string) => { * return { * [`filter[${path}][$in]`]: uniq(ids), * } * } * ``` */ factory?: (ids: Array, path: string) => any; }): { type: OperatorType.Populate; statePath: string; toStatePath: string; idPath: string; idSource: string; platforms: Platform[]; factory: (ids: (string | number)[], path: string) => any; params: { [key: string]: string | string[]; }; operations: (string | number)[]; };