import type { InferIOAuthorize, InferIOCrdt, InferIOEvents, IOLike } from "@pluv/types"; import type { identity } from "./utils"; export type InferCallback> = (i: typeof identity) => { io: (io: TIO) => TIO; }; export const infer = >( callback: InferCallback, ): InferCallback, InferIOCrdt, InferIOEvents>> => { return callback as any; };