import { Invalidator } from './Invalidator.js'; export type Subscriber = (value: T) => void | Promise | Invalidator;