/** Reformats path from format `'/foo/bar?'` to `'/foo{/bar}'`, according to the latest `path-to-regex` lib rules */ export declare function replaceOptionalParts(pathname: string): string;