/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
/**
 * A {@link NodeBase} which implements 'readonly T[]' and the list mutation APIs.
 * @beta
 */
export const TreeListNode = {
    /**
     * Wrap an iterable of items to inserted as consecutive items in a list.
     * @remarks
     * The object returned by this function can be inserted into a {@link (TreeListNode:interface)}.
     * Its contents will be inserted consecutively in the corresponding location in the list.
     * @example
     * ```ts
     * list.insertAtEnd(TreeListNode.inline(iterable))
     * ```
     */
    inline: (content) => IterableTreeListContent[create](content),
};
/**
 * Non-exported symbol used to make IterableTreeListContent constructable only from within this file.
 */
const create = Symbol("Create IterableTreeListContent");
/**
 * Used to insert iterable content into a {@link (TreeListNode:interface)}.
 * Use {@link (TreeListNode:variable).inline} to create an instance of this type.
 * @beta
 */
export class IterableTreeListContent {
    constructor(content) {
        this.content = content;
    }
    /**
     * Package internal construction API.
     * Use {@link (TreeListNode:variable).inline} to create an instance of this type instead.
     */
    static [create](content) {
        return new IterableTreeListContent(content);
    }
    /**
     * Iterates over content for nodes to insert.
     */
    [Symbol.iterator]() {
        return this.content[Symbol.iterator]();
    }
}
//# sourceMappingURL=treeListNode.js.map