import type { ApiEndpointsTreeItem, ApiEndPointWithOperationsListItem } from '../../types.js';
/**
 * A class that transforms the list of endpoints and methods into
 * a "natural" tree structure with indentation.
 * This is consistent with the legacy API navigation element sorting.
 */
export declare class NaturalTree {
    result: ApiEndpointsTreeItem[];
    basePaths: string[];
    constructor();
    /**
     * @param list The list of endpoints as they appear in the API.
     */
    create(list: ApiEndPointWithOperationsListItem[]): ApiEndpointsTreeItem[];
    appendEndpointItem(item: ApiEndPointWithOperationsListItem): void;
    /**
     * Computes label for an endpoint when name is missing and the endpoint
     * is indented, hence name should be truncated.
     * @param currentPath Endpoint's path
     * @param parts Path parts
     * @param indent Endpoint indentation
     */
    computePathName(currentPath: string, parts: string[], indent: number): string;
}
//# sourceMappingURL=NaturalTree.d.ts.map