export declare function tree(items: T[], options?: { emptyMessage?: string; } | ((item: T) => T), callback?: (item: T) => T | string): void | any[];