import { n as vi, r as afterEach } from "../../test.p_J6dB8a-Dyq-JxSD.js";
//#region extensions/minimax/provider-http.test-helpers.ts
const minimaxProviderHttpMocks = vi.hoisted(() => ({
	resolveApiKeyForProviderMock: vi.fn(async () => ({ apiKey: "provider-key" })),
	postJsonRequestMock: vi.fn(),
	fetchWithTimeoutMock: vi.fn(),
	assertOkOrThrowHttpErrorMock: vi.fn(async () => {}),
	resolveProviderHttpRequestConfigMock: vi.fn((params) => ({
		baseUrl: params.baseUrl ?? params.defaultBaseUrl,
		allowPrivateNetwork: false,
		headers: new Headers(params.defaultHeaders),
		dispatcherPolicy: void 0
	}))
}));
vi.mock("kaijibot/plugin-sdk/provider-auth-runtime", () => ({ resolveApiKeyForProvider: minimaxProviderHttpMocks.resolveApiKeyForProviderMock }));
vi.mock("kaijibot/plugin-sdk/provider-http", () => ({
	assertOkOrThrowHttpError: minimaxProviderHttpMocks.assertOkOrThrowHttpErrorMock,
	fetchWithTimeout: minimaxProviderHttpMocks.fetchWithTimeoutMock,
	postJsonRequest: minimaxProviderHttpMocks.postJsonRequestMock,
	resolveProviderHttpRequestConfig: minimaxProviderHttpMocks.resolveProviderHttpRequestConfigMock
}));
function getMinimaxProviderHttpMocks() {
	return minimaxProviderHttpMocks;
}
function installMinimaxProviderHttpMockCleanup() {
	afterEach(() => {
		minimaxProviderHttpMocks.resolveApiKeyForProviderMock.mockClear();
		minimaxProviderHttpMocks.postJsonRequestMock.mockReset();
		minimaxProviderHttpMocks.fetchWithTimeoutMock.mockReset();
		minimaxProviderHttpMocks.assertOkOrThrowHttpErrorMock.mockClear();
		minimaxProviderHttpMocks.resolveProviderHttpRequestConfigMock.mockClear();
	});
}
function loadMinimaxMusicGenerationProviderModule() {
	return import("./music-generation-provider.js");
}
function loadMinimaxVideoGenerationProviderModule() {
	return import("./video-generation-provider.js");
}
//#endregion
export { getMinimaxProviderHttpMocks, installMinimaxProviderHttpMockCleanup, loadMinimaxMusicGenerationProviderModule, loadMinimaxVideoGenerationProviderModule };
