@kontent-ai/core-sdk
Version:
Core package with shared / common functionality for Kontent.ai SDKs
16 lines (15 loc) • 753 B
TypeScript
import type { Mock } from "vitest";
import type { HttpServiceStatus } from "../http/http.models.js";
import type { JsonValue } from "../models/json.models.js";
import type { Header } from "../public_api.js";
export declare function getFetchJsonMock<TResponseData extends JsonValue>({ json, status, responseHeaders, }: {
readonly json: TResponseData;
readonly status: HttpServiceStatus;
readonly responseHeaders?: readonly Header[];
}): Mock<() => Promise<Response>>;
export declare function getFetchBlobMock({ blob, status, responseHeaders, }: {
readonly blob: Blob;
readonly status: HttpServiceStatus;
readonly responseHeaders?: readonly Header[];
}): Mock<() => Promise<Response>>;
export declare function getFakeBlob(): Blob;