/** * Copyright (c) 2026-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { LegendServiceCardState } from './LegendMarketplaceDataAPIsStore.js'; export declare const toPatternSegments: (pattern: string) => string[]; export declare class LegendServiceTreeNode { readonly path: string; readonly key: string; label: string; readonly children: LegendServiceTreeNode[]; readonly services: LegendServiceCardState[]; serviceCount: number; depth: number; siblingIndex: number; siblingCount: number; subtreeEnd: number; constructor(path: string, label: string, key?: string); get isOwnServiceLeaf(): boolean; get isGroup(): boolean; } export declare class LegendServiceTree { readonly roots: LegendServiceTreeNode[]; readonly groupPaths: string[]; readonly flat: LegendServiceTreeNode[]; constructor(services: LegendServiceCardState[], scopePath?: string); /** * Moves the services of every node that also has children into a leaf child * of its own, so that groups carry no services. */ private separateOwnServices; /** * Merges single-child chains below `node`, leaving `node` itself untouched. */ private compactChildren; private mergeChain; private flatten; private finalize; } //# sourceMappingURL=LegendServiceTree.d.ts.map