1 | /**
|
2 | * Generates the permutation of all possible values that {@link pathMatch} the `path` parameter.
|
3 | * The array is in longest-to-shortest order. Useful when building custom {@link Store} implementations.
|
4 | *
|
5 | * @example
|
6 | * ```
|
7 | * permutePath('/foo/bar/')
|
8 | * // ['/foo/bar/', '/foo/bar', '/foo', '/']
|
9 | * ```
|
10 | *
|
11 | * @param path - the path to generate permutations for
|
12 | * @public
|
13 | */
|
14 | export declare function permutePath(path: string): string[];
|