/** Where a new child goes in its collection. Mirrors the `ChildrenPlacement` contract enum. */ export declare enum ChildrenPlacement { /** New children are added at the end of the collection (the default). */ Append = 0, /** New children are added at the start of the collection. */ Prepend = 1, /** New children are inserted at their sorted position. */ Sorted = 2 } /** The direction children are sorted in. Mirrors the `SortDirection` contract enum. */ export declare enum SortDirection { /** Smallest first; children without a value sort first. */ Ascending = 0, /** Largest first; children without a value sort last. */ Descending = 1 } /** Plain object shape matching the wire-level `ChildrenOrderingDefinition`. */ export interface ChildrenOrderingDefinitionLike { /** Where new children go. */ Placement: ChildrenPlacement; /** The property path on the child to sort by; empty unless {@link ChildrenPlacement.Sorted}. */ SortBy: string; /** The sort direction; only meaningful for {@link ChildrenPlacement.Sorted}. */ Direction: SortDirection; } /** * Creates the ordering that adds new children at the start of the collection. * @returns The ordering definition. */ export declare function prependOrdering(): ChildrenOrderingDefinitionLike; /** * Creates the ordering that inserts new children at their sorted position. * @param sortBy - The property path on the child to sort by. * @param direction - The sort direction. * @returns The ordering definition. */ export declare function sortedOrdering(sortBy: string, direction: SortDirection): ChildrenOrderingDefinitionLike; //# sourceMappingURL=childrenOrdering.d.ts.map