import { type HttpMetaParams, type HttpResponse } from "../interfaces/http.js"; import { type Paginator } from "./paginator.js"; type IsOptional = {} extends T ? TTrue : T extends undefined ? TTrue : TFalse; type WrapInPromiseIfNotPaginator = T extends Paginator ? T : Promise; type DefaultMethod> = IsOptional; }, { (params: TParams, meta?: TMeta): WrapInPromiseIfNotPaginator; }>; type Raw = T extends Paginator ? Paginator> : Promise>; /** @experimental */ type RawMethod> = IsOptional; }, { $raw(params: TParams, meta?: TMeta): Raw; }>; export type Method = HttpMetaParams> = DefaultMethod & RawMethod; export {};