export declare function replaceTerritoryPath( path: readonly T[], index: number, selected?: T | null, ): T[];