import type { RequestOptionsWithHooks, SendMethod } from './types'; import type { HttpResponse } from '@socketsecurity/lib/http-request'; import type { JsonValue } from '@socketsecurity/lib/json/types'; export declare class ResponseError extends Error { response: HttpResponse; url?: string | undefined; constructor(response: HttpResponse, message?: string, url?: string | undefined); } export declare function createDeleteRequest(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined): Promise; export declare function createGetRequest(baseUrl: string, urlPath: string, options?: RequestOptionsWithHooks | undefined): Promise; export declare function createRequestWithJson(method: SendMethod, baseUrl: string, urlPath: string, json: unknown, options?: RequestOptionsWithHooks | undefined): Promise; export declare function getResponseJson(response: HttpResponse, method?: string | undefined, url?: string | undefined): Promise; export declare function isResponseOk(response: HttpResponse): boolean; export declare function reshapeArtifactForPublicPolicy>(data: T, isAuthenticated: boolean, actions?: string | undefined, policy?: Map | undefined): T;