/** * Removes extensions and index from next path * * @example * /index.js => / * /main.html => /main */ export declare const toCleanPath: (pagePath: string) => string; /** * Converts next path to express route syntax * @example * /[param1]/[param2] => /:param1/:param2 * /[...path] => /:path* * @param pagePage The next page path, for example /products/[id] * @param isDataRoute true if we are creating a route for a call to getStaticProps or getServerSideProps */ export declare const toRouteSyntax: (pagePath: string, { suffix, locale }?: { suffix?: string | undefined; locale?: string | undefined; }) => string; export declare function localize(locales: string[] | undefined, route: string): string;