import type { IMutablePathSegments } from '../../../../types/segments/mutable-path-segments.type.js';
import type { IUncheckedPathSegment } from '../../../../types/segments/segment/unchecked-path-segment.type.js';
export interface IPushSegmentIntoMutablePathSegmentsOptions {
    readonly rootRegExp: RegExp;
}
/**
 * Inserts `segment` at the end of the path.
 *  - may insert `..` if the path is not a single root
 *  - cannot insert a root
 *  - the path remains valid
 */
export declare function pushSegmentIntoMutablePathSegments(segments: IMutablePathSegments, segment: IUncheckedPathSegment, { rootRegExp }: IPushSegmentIntoMutablePathSegmentsOptions): void;
