import type { FetchFunction, ResolveType } from '@data-client/endpoint'; import { PartialRestGenerics } from './RestEndpoint.js'; export type OptionsToFunction< O extends PartialRestGenerics, E extends { body?: any; path?: string; method?: string }, F extends FetchFunction, > = ( this: ThisParameterType, ...args: any ) => Promise< O['process'] extends {} ? ReturnType : ResolveType >; export type OptionsToBodyArgument< O extends { body?: any }, Method extends string | undefined, > = any;