import type { ReactNode } from 'react'; import type { LayoutParams, LayoutPath, PagePath, PropsForPages } from './create-pages-utils/inferred-path-types.js'; import type { Prettify } from './create-pages-utils/util-types.js'; export type { ApiContext, PathsForPages, GetConfigResponse, SearchCodecsForPages, } from './create-pages-utils/inferred-path-types.js'; export type { SearchCodec as Unstable_SearchCodec } from './isomorphic-utils/search-codec.js'; export { createRouteHref as unstable_createRouteHref } from './href-factory.js'; export interface RouteConfig { } /** * Route metadata used by page, layout, and constructed-href types. * * The file-system router augments this from generated metadata. Manual * augmentations must not refer to a `createPages` result because it includes * component types and can create circular inference. */ export interface CreatePagesConfig { } export interface SearchCodecsConfig { } /** Props for pages when using `createPages` */ export type PageProps] extends [never] ? string : PagePath)> = PropsForPages; /** * Props for layouts when using `createPages`. Adds the required `children` to * the layout's own route params (a layout receives neither `path`, `query`, nor * `search` at runtime). Validated against the generated layout paths, which can * include layout-only paths that have no co-located page. A static layout * without `staticPaths` above a dynamic page may get `undefined` params. */ export type LayoutProps] extends [never] ? string : LayoutPath)> = Prettify<{ children: ReactNode; } & LayoutParams>;