// Generated by bynkc — do not edit by hand.
// composition root for `demo.counter` Worker.

import { type ServiceBinding } from "../../runtime.js";
import * as handlers from "./handlers.js";

export interface Env {
  COUNTER: DurableObjectNamespace;
}

type DurableObjectNamespace = { idFromName(name: string): { toString(): string }; get(id: any): any };

export function compose(env: Env) {
  const deps = { env };
  return {
    async bump(id: any) {
      return handlers.bump.call(id, deps);
    },
    async read(id: any) {
      return handlers.read.call(id, deps);
    },
  };
}
