import { EndpointTypeMap } from "./endpoints"; export type EndpointType = keyof EndpointTypeMap | (string & {}); export type InputType = T extends keyof EndpointTypeMap ? EndpointTypeMap[T]["input"] : Record; export type OutputType = T extends keyof EndpointTypeMap ? EndpointTypeMap[T]["output"] : any;