export type HasDriver = { driver: () => T; setDriver: (newDriver: T) => void; };