import { EntityLink } from "../entity-link"; import Resource from "./resource"; export declare class RelationResource extends Resource { parents?: Array; parent?: EntityLink; children?: Array; child?: EntityLink; inheritsSecurity?: boolean; parentTotal?: number; childTotal?: number; constructor(init?: Partial); /** * Merges two relation resources. * * This should be used for self referencing relations, where there can be no conflicts * between the two existing resources. * @param main - Source to use as defaults * @param toMerge - Source to use to set relation links */ static merge(main: RelationResource, toMerge: RelationResource): RelationResource; }