// Generated by bynkc — do not edit by hand.
// context shop

import { Ok, Err, Some, None, type Result, type Option, type ValidationError } from "./runtime.js";

export interface Counter {
  readonly count: number;
}

export const Counter = {
  bump(self: Counter): Counter {
    return { count: self.count + 1 };
  },
};

export interface Gauge {
  readonly level: number;
}

export const Gauge = {
  bump(self: Gauge): Gauge {
    return { level: self.level + 1 };
  },
};

export function run(c: Counter): Counter {
  return Counter.bump(c);
}

export function tick(g: Gauge): Gauge {
  return Gauge.bump(g);
}

