export type NestedItem = {
    items?: NestedItem[];
    [key: string]: any;
};
/**
 * Recursively collects values of a specified property from a nested tree structure.
 *
 * Traverses an array of objects that may contain nested children under the `items` key.
 * For each object and its nested descendants, collects the values of the given property name
 * into a single flat array.
 *
 * @template T The type of the property values to collect.
 * @param list The array of items to traverse. Each item can have nested `items` arrays.
 * @param propName The property name whose values should be collected.
 * @param res An internal accumulator array for recursion. Defaults to an empty array.
 * @returns An array containing all collected values of the specified property.
 *
 * @example
 * ```ts
 * const data = [
 *   { id: 1, items: [{ id: 2, items: [], name: 'child' }], name: 'root' },
 *   { id: 3, items: [], name: 'another' },
 * ];
 * const names = collectPropValueDeep<string>(data, 'name');
 * // names is ['root', 'child', 'another']
 * ```
 */
export declare function collectPropValueDeep<T>(list: NestedItem[], propName: string, res?: T[]): T[];
//# sourceMappingURL=collect-prop-value-deep.d.ts.map