import type { MatchedRoute } from "bun"; export type ServerProps = { params: Record; searchParams: Record; headers: Headers; cookies: Record; body: any; method: string; url: string; pathname: string; query: Record; search: string; hash: string; }; export type StaticProps = { params: Record; searchParams: Record; headers: Headers; cookies: Record; body: any; method: string; url: string; pathname: string; query: Record; search: string; hash: string; }; export type StaticPaths = string[]; export type StaticParams = Record; export type PageModule = { component: React.ComponentType; serverProps: ServerProps; staticProps: StaticProps; staticPaths: StaticPaths; staticParams: StaticParams; }; export type BunextConfig = { distDir?: string; assetsPrefix?: string; origin?: string; globalVars?: { [k: string]: any }; port?: number; }; export type GetRouteReturn = { match: MatchedRoute; module: PageModule; component: React.ComponentType; serverProps: ServerProps; staticProps: StaticProps; staticPaths: StaticPaths; staticParams: StaticParams; };