import { z } from 'zod'; import { CreateFileRoute, RegisteredRouter, RouteIds } from '@tanstack/router-core'; import { CodeSplitGroupings } from './constants.cjs'; export declare const splitGroupingsSchema: z.ZodArray, z.ZodLiteral<"component">, z.ZodLiteral<"pendingComponent">, z.ZodLiteral<"errorComponent">, z.ZodLiteral<"notFoundComponent">]>>>; export type CodeSplittingOptions = { /** * Use this function to programmatically control the code splitting behavior * based on the `routeId` for each route. * * If you just need to change the default behavior, you can use the `defaultBehavior` option. * @param params */ splitBehavior?: (params: { routeId: RouteIds; }) => CodeSplitGroupings | undefined | void; /** * The default/global configuration to control your code splitting behavior per route. * @default [['component'],['pendingComponent'],['errorComponent'],['notFoundComponent']] */ defaultBehavior?: CodeSplitGroupings; /** * The nodes that shall be deleted from the route. * @default undefined */ deleteNodes?: Array; /** * @default true */ addHmr?: boolean; }; export type HmrStyle = 'vite' | 'webpack'; export type HmrOptions = { /** * Selects the HMR runtime style to emit code for. * - `'vite'` (default): ESM `import.meta.hot` with Vite accept-callback semantics. * - `'webpack'`: `import.meta.webpackHot` with webpack / Rspack `module.hot` re-execution semantics. * * Bundler-specific plugin entries (e.g. `rspack.ts`, `webpack.ts`) set this explicitly. */ style?: HmrStyle; }; type FileRouteKeys = keyof (Parameters>[0] & {}); export type DeletableNodes = FileRouteKeys | (string & {}); export declare const configSchema: z.ZodObject<{ target: z.ZodDefault>>; virtualRouteConfig: z.ZodOptional>, z.ZodString]>>; routeFilePrefix: z.ZodOptional; routeFileIgnorePrefix: z.ZodDefault>; routeFileIgnorePattern: z.ZodOptional; routesDirectory: z.ZodDefault>; quoteStyle: z.ZodDefault>>; semicolons: z.ZodDefault>; disableLogging: z.ZodDefault>; routeTreeFileHeader: z.ZodDefault>>; indexToken: z.ZodDefault, z.ZodObject<{ regex: z.ZodString; flags: z.ZodOptional; }, z.core.$strip>]>>>; routeToken: z.ZodDefault, z.ZodObject<{ regex: z.ZodString; flags: z.ZodOptional; }, z.core.$strip>]>>>; pathParamsAllowedCharacters: z.ZodOptional>>; generatedRouteTree: z.ZodDefault>; disableTypes: z.ZodDefault>; addExtensions: z.ZodPipe>>, z.ZodTransform>; enableRouteTreeFormatting: z.ZodDefault>; routeTreeFileFooter: z.ZodOptional>>, z.ZodCustom<() => Array, () => Array>]>>; autoCodeSplitting: z.ZodOptional; customScaffolding: z.ZodOptional; lazyRouteTemplate: z.ZodOptional; }, z.core.$strip>>; experimental: z.ZodOptional; }, z.core.$strip>>; plugins: z.ZodOptional>>; tmpDir: z.ZodDefault>; importRoutesUsingAbsolutePaths: z.ZodDefault>; enableRouteGeneration: z.ZodOptional; codeSplittingOptions: z.ZodOptional>; plugin: z.ZodOptional>; }, z.core.$strip>>; vite: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export declare const getConfig: (inlineConfig: Partial, root: string) => { target: "vue" | "react" | "solid"; routeFileIgnorePrefix: string; routesDirectory: string; quoteStyle: "single" | "double"; semicolons: boolean; disableLogging: boolean; routeTreeFileHeader: string[]; indexToken: string | RegExp | { regex: string; flags?: string | undefined; }; routeToken: string | RegExp | { regex: string; flags?: string | undefined; }; generatedRouteTree: string; disableTypes: boolean; addExtensions: string | boolean; enableRouteTreeFormatting: boolean; tmpDir: string; importRoutesUsingAbsolutePaths: boolean; virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined; routeFilePrefix?: string | undefined; routeFileIgnorePattern?: string | undefined; pathParamsAllowedCharacters?: (":" | "$" | ";" | "@" | "&" | "=" | "+" | ",")[] | undefined; routeTreeFileFooter?: string[] | (() => Array) | undefined; autoCodeSplitting?: boolean | undefined; customScaffolding?: { routeTemplate?: string | undefined; lazyRouteTemplate?: string | undefined; } | undefined; experimental?: { enableCodeSplitting?: boolean | undefined; } | undefined; plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined; enableRouteGeneration?: boolean | undefined; codeSplittingOptions?: CodeSplittingOptions | undefined; plugin?: { hmr?: { style?: "vite" | "webpack" | undefined; } | undefined; vite?: { environmentName?: string | undefined; } | undefined; } | undefined; }; export type Config = z.infer; export type ConfigInput = z.input; export type ConfigOutput = z.output; export {};