interface Fetcher {
  fetch(input: Request | string, init?: RequestInit): Promise<Response>;
}

// The calculator has no database; this placeholder only satisfies the generated
// Cloudflare environment import used by the hosting adapter.
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface D1Database {}

declare module "cloudflare:workers" {
  export const env: { DB?: D1Database };
}
