declare module '@sapper/app' { interface Redirect { statusCode: number location: string } function goto( href: string, opts: { replaceState: boolean; noscroll: boolean } ): Promise function prefetch( href: string ): Promise<{ redirect?: Redirect; data?: unknown }> function prefetchRoutes(pathnames: string[]): Promise function start(opts: { target: Node }): Promise const stores: () => unknown export { goto, prefetch, prefetchRoutes, start, stores } } declare module '@sapper/server' { import { RequestHandler } from 'express' interface MiddlewareOptions { session?: (req: Express.Request, res: Express.Response) => unknown ignore?: unknown } function middleware(opts?: MiddlewareOptions): RequestHandler export { middleware } } declare module '@sapper/service-worker' { const timestamp: number const files: string[] const shell: string[] const routes: { pattern: RegExp }[] export { timestamp, files, files as assets, shell, routes } }