import { OrmGenerics } from "../types/ormGenerics";
import { DetermineResponseDataType, iRest, RequestQueryBody } from "../types/ormInterfaces";
/**
 * Facade: routes API calls to SQL or HTTP executors based on runtime context.
 */
export default function restRequest<G extends OrmGenerics>(configX: (() => iRest<G['RestTableInterface'], G['RestShortTableName'], G['PrimaryKey']>) | iRest<G['RestShortTableName'], G['RestTableInterface'], G['PrimaryKey']>): (request: RequestQueryBody<G["RequestMethod"], G["RestTableInterface"], G["CustomAndRequiredFields"], G["RequestTableOverrides"]>) => Promise<DetermineResponseDataType<G["RequestMethod"], G["RestTableInterface"]>>;
