/** * @author Thomas Barnekow * @license MIT */ import { IterableValueTransform } from '@tsdotnet/linq/dist/IterableTransform.js'; import { XContainer, XElement, XName } from '../internal.js'; /** * Returns a function that, for the elements of the source sequence passed to * that function, returns the concatenated sequences of child elements of such * elements in document order. * * If a name is provided, the resulting sequence contains only those ancestors * having a matching name. * * @typeParam T The type of the elements contained in the source sequence. * @param name The optional name used to filter the sequence of child elements. * @returns A function that will return a flat sequence of child elements in * document order. */ export declare function elements(name?: XName | null): IterableValueTransform;