import { EndpointInstance, FetchFunction, Schema, SchemaClass } from '@rest-hooks/endpoint'; import { EntityInterface } from '@rest-hooks/normalizr'; export type RestFetch

, R = any> = (this: RestEndpoint, params?: P, body?: B, ...rest: any) => Promise; export type FetchMutate

, R = any> = (this: RestEndpoint, params: P, body: B) => Promise; export type FetchGet

= (this: RestEndpoint, params: P) => Promise; /** Endpoint from a Resource * * Includes additional properties provided by Resource.endpoint() */ export interface RestEndpoint extends EndpointInstance { url: (...args: U) => string; fetchInit: RequestInit; useFetchInit: (this: any) => any; getFetchInit: (this: any, body?: RequestInit['body'] | Record) => any; method: string; signal: AbortSignal | undefined; } export type SchemaDetail = EntityInterface | { [K: string]: any; } | SchemaClass; /** @deprecated */ export type SchemaList = EntityInterface[] | { [K: string]: any; } | Schema[] | SchemaClass; //# sourceMappingURL=types.d.ts.map