declare module 'database' { export const db: { serialize(cb: () => T): T run( statement: string, args: Record, onComplete: (this: { lastID: string }, error?: Error) => void ): void } } declare module 'db' { export default function deleteFromDb(arg: any, ...args: any[]): Promise } declare module 'auth' { export function validator any>(fn: TFn): TFn export function another any>(fn: TFn): TFn } declare module 'anything' { const ANYTHING: any export default ANYTHING } declare module 'foo' { const f: any export default f export const f1: any export const f2: any } declare module 'components' { import React from 'react' export function Button( props: { action: () => Promise } & React.ComponentProps<'button'> ): React.ReactNode export function Form( props: React.PropsWithChildren<{ action: () => Promise }> ): React.ReactNode export function Client(props: Record): React.ReactNode } declare module 'navigation' { export function redirect(href: string): void } // Some tests generate `data:text/javascript,...` imports declare module 'data:text/*'