import { ObservableArray } from './observable-array.js'; import type { Entity, QueriedAs } from './entity-aspect.js'; import type { QueryErrorCallback, QueryResult, QuerySuccessCallback } from '../manager/entity-manager.js'; import type { DataProperty, NavigationProperty } from '../metadata/entity-metadata.js'; /** The value of a collection navigation property, such as `customer.orders`. It is a real array: adding an entity sets the entity's inverse navigation property (or foreign key) to point at the parent, attaching it to the parent's manager if it is detached, and removing one sets its inverse navigation property to null. Changes raise the array's `arrayChanged` event with an {@link ArrayChangedArgs}. */ export interface RelationArray extends ObservableArray { /** The entity whose navigation property holds this array. */ parentEntity: Entity; /** Not set on a relation array: always undefined. Use `navigationProperty`. */ parentProperty?: DataProperty; /** The {@link NavigationProperty} of `parentEntity` that holds this array. */ navigationProperty: NavigationProperty; load(): Promise>>; /** @deprecated Await the returned promise instead of passing callbacks. */ load(querySuccessCallback?: QuerySuccessCallback, queryErrorCallback?: QueryErrorCallback): Promise>>; } /** For use by breeze plugin authors only. The class is for use in building a {@link ModelLibraryAdapter} implementation. @adapter (see {@link ModelLibraryAdapter}) @hidden */ export declare function makeRelationArray(arr: any[], parentEntity: Entity, navigationProperty: NavigationProperty): RelationArray;