import { FetchEvent } from "../types"; export type ServerFunction void> = (( ...p: Parameters ) => Promise>>) & { url: string }; export type CreateServerFunction = ( void>( fn: T ) => ServerFunction) & { getHandler: (route: string) => any; createHandler: (fn: any, hash: string) => any; registerHandler: (route: string, handler: any) => any; hasHandler: (route: string) => boolean; createFetcher(route: string): ServerFunction; fetch(route: string, init?: RequestInit): Promise; } & FetchEvent;