// @ts-nocheck import NormalisedURLDomain from "./normalisedURLDomain"; import NormalisedURLPath from "./normalisedURLPath"; import { UserContext } from "./types"; import { NetworkInterceptor } from "./types"; import { PathParam, RequestBody, ResponseBody } from "./core/types"; import { paths } from "./core/paths"; import type SuperTokens from "./supertokens"; export declare class Querier { private stInstance; private static initCalled; private static hosts; private static apiKey; private static apiVersion; private static lastTriedIndex; private static hostsAliveForTesting; private static networkInterceptor; private static globalCacheTag; private static disableCache; private __hosts; private rIdToCore; private constructor(); getAPIVersion: (userContext: UserContext) => Promise; static reset(): void; getHostsAliveForTesting: () => Set; static getNewInstanceOrThrowError(stInstance: SuperTokens, rIdToCore?: string): Querier; static init(hosts?: { domain: NormalisedURLDomain; basePath: NormalisedURLPath; }[], apiKey?: string, networkInterceptor?: NetworkInterceptor, disableCache?: boolean): void; private getPath; sendPostRequest:

(templatePath: PathParam

, body: RequestBody, userContext: UserContext) => Promise>; sendDeleteRequest:

(templatePath: PathParam

, body: RequestBody, params: any | undefined, userContext: UserContext) => Promise>; sendGetRequest:

(templatePath: PathParam

, params: Record, userContext: UserContext) => Promise>; sendGetRequestWithResponseHeaders:

(templatePath: PathParam

, params: Record, inpHeaders: Record | undefined, userContext: UserContext) => Promise<{ body: ResponseBody; headers: Headers; }>; sendPutRequest:

(templatePath: PathParam

, body: RequestBody, params: Record, userContext: UserContext) => Promise>; sendPatchRequest:

(templatePath: PathParam

, body: RequestBody, userContext: UserContext) => Promise>; invalidateCoreCallCache: (userContext: UserContext, updGlobalCacheTagIfNecessary?: boolean) => void; getAllCoreUrlsForPath(path: string): string[]; private sendRequestHelper; } export declare const doFetch: typeof fetch; export declare function postWithFetch(url: string, headers: Record, body: any, { successLog, errorLogHeader }: { successLog: string; errorLogHeader: string; }): Promise<{ resp: { status: number; body: any; }; } | { error: any; }>;