import type { FetchFunction, ResolveType } from '@data-client/endpoint'; import { PathArgs } from './pathTypes.js'; import { PartialRestGenerics, RestFetch } from './RestEndpoint.js'; export type OptionsToFunction = 'path' extends keyof O ? RestFetch<'searchParams' extends keyof O ? O['searchParams'] & PathArgs> : PathArgs>, OptionsToBodyArgument<'body' extends keyof O ? O : E, 'method' extends keyof O ? O['method'] : E['method']>, O['process'] extends {} ? ReturnType : ResolveType> : 'body' extends keyof O ? RestFetch<'searchParams' extends keyof O ? O['searchParams'] & PathArgs> : PathArgs>, OptionsToBodyArgument, O['process'] extends {} ? ReturnType : ResolveType> : 'searchParams' extends keyof O ? RestFetch>, OptionsToBodyArgument, O['process'] extends {} ? ReturnType : ResolveType> : (this: ThisParameterType, ...args: Parameters) => Promise : ResolveType>; export type OptionsToBodyArgument = Method extends 'POST' | 'PUT' | 'PATCH' | 'DELETE' ? 'body' extends keyof O ? O['body'] : any : undefined; //# sourceMappingURL=OptionsToFunction.d.ts.map