export declare function makeRequest(method: 'get' | 'post' | 'delete' | 'update', params: any, path: string): Promise; interface businessUseCaseUsage { [key: string | number]: Array<{ type: string; call_count: number; total_cputime: number; total_time: number; estimated_time_to_regain_access: number; }>; } export type datetime = string; export type int = number; export type float = number; export type bool = boolean; export type map = Record; export type list = Array; export type uint = number; export interface defaultParamsNodes { limit?: number; filtering?: { field: string; operator: "EQUAL" | "IN"; value: string; }[]; summary?: ReadonlyArray<"total_count" | string>; } export interface rootParams { readonly metadata?: true; readonly pretty?: boolean; readonly debug?: "all"; readonly access_token: string; } export type rootParamsAnd = rootParams & T; type Params = rootParamsAnd; type FormatValue = T extends Connection ? FormatParams4Input : T extends Primitive ? true : never; export type FormatParams4Input> = Omit & defaultParamsNodes & { fields?: { [key in keyof T['fields']]?: FormatValue; }; }; export type Primitive = T; export type Field = T; export type Connection = T; interface BaseConnection { fields?: { [key: string]: any; }; summary?: ReadonlyArray<"total_count" | string>; } export interface paging { next?: string; cursors: { before: string; after: string; }; getNext?: () => {}; } type formatConnection | undefined> = key extends "picture" ? { data: T; } : { data: T[]; paging: paging; } & (summary extends ReadonlyArray ? { summary: { [key in summary[number]]: any; }; } : {}); type useKeysFromLeft = { [key in keyof left]: left[key] extends Params ? formatConnection, key, left[key]['summary']> : right[key]; }; type formatReturn, ogParams extends Params, left = inParams['fields'], right = ogParams['fields']> = useKeysFromLeft; export declare class BaseQuery { static get, ogParams extends Params, returnType = formatReturn>(params: inParams, path: string): Promise; static delete, ogParams extends Params, returnType = formatReturn>(params: inParams, path: string): Promise; static update, ogParams extends Params, returnType = formatReturn>(params: inParams, path: string): Promise; static post, ogParams extends Params, returnType = formatReturn>(params: inParams, path: string): Promise; id: string; constructor(id: string); } export {};