import { Logger } from "@adviser/cement"; import { ActiveStore, CarClockHead, CarClockLink, DbMeta } from "./types.js"; export interface TaskManagerParams { readonly removeAfter: number; readonly retryTimeout: number; } export interface TaskManagerIf { readonly logger: Logger; readonly params: TaskManagerParams; readonly callback: (dbMeta: DbMeta, store: ActiveStore) => Promise; handleEvent(cid: CarClockLink, parents: CarClockHead, dbMeta: DbMeta, store: ActiveStore): Promise; }