import { AdminRestApiClient } from '@shopify/admin-api-client'; import { ConfigInterface } from '../../../base-types'; import { RestRequestReturn, RestClientParams } from '../types'; import type { RequestParams, GetRequestParams, PutRequestParams, PostRequestParams, DeleteRequestParams } from '../../types'; import { ApiVersion } from '../../../types'; import { Session } from '../../../session/session'; export interface RestClientClassParams { config: ConfigInterface; formatPaths?: boolean; } export declare class RestClient { static config: ConfigInterface; static formatPaths: boolean; static LINK_HEADER_REGEXP: RegExp; static DEFAULT_LIMIT: string; static RETRY_WAIT_TIME: number; static readonly DEPRECATION_ALERT_DELAY = 300000; loggedDeprecations: Record; readonly client: AdminRestApiClient; readonly session: Session; readonly apiVersion: ApiVersion; constructor({ session, apiVersion }: RestClientParams); /** * Performs a GET request on the given path. */ get(params: GetRequestParams): Promise>; /** * Performs a POST request on the given path. */ post(params: PostRequestParams): Promise>; /** * Performs a PUT request on the given path. */ put(params: PutRequestParams): Promise>; /** * Performs a DELETE request on the given path. */ delete(params: DeleteRequestParams): Promise>; protected request(params: RequestParams): Promise>; private restClass; /** * Parse JSON with lossless-json to preserve numeric precision. * Converts all ID fields (ending with _id, _ids, or named 'id') to strings. */ private parseJsonWithLosslessNumbers; private buildRequestParams; private logDeprecations; } export declare function restClientClass(params: RestClientClassParams): typeof RestClient; //# sourceMappingURL=client.d.ts.map