import type { Plugin } from 'vite'; type FsRouterDirs = { pagesDir?: string; apiDir?: string; slicesDir?: string; interceptorsDir?: string; }; export declare const toIdentifierForTest: (input: string) => string; export declare const getImportModuleNamesForTest: (filePaths: string[]) => { [k: string]: string; }; /** * Generates `pages.gen.ts` for fsRouter while the dev server runs. Waku adds it * by default. `srcDir` is Waku's `srcDir`, and the other options are fsRouter's * directory options with the same defaults. To match an fsRouter configured with * custom directories, add it to `vite.plugins` in `waku.config.ts` with the same * options; it replaces the default one. * * @example * import { unstable_fsRouterTypegenPlugin as fsRouterTypegenPlugin } from 'waku/vite-plugins'; * * fsRouterTypegenPlugin({ srcDir: 'src', slicesDir: '_fragments' }); */ export declare function fsRouterTypegenPlugin(opts: { srcDir: string; } & FsRouterDirs): Plugin; export declare function detectFsRouterUsage(srcDir: string): Promise; export declare function generateFsRouterTypes(srcPath: string, opts?: FsRouterDirs): Promise; export {};