import { ModelConfig, SDKAdapterContract } from "../contracts/sdk-adapter.contract.mjs"; import { MockImageModel } from "./mock-image-model.mjs"; import { MockSpeechModel } from "./mock-speech-model.mjs"; import { MockTranscriptionModel } from "./mock-transcription-model.mjs"; import { MockSDKConfig } from "./mock-config.type.mjs"; import { MockModel } from "./mock-model.mjs"; //#region ../ai/src/mock/mock-sdk.d.ts /** * Creates a mock SDK adapter for testing — no HTTP calls, fully configurable. * * @example * const mock = MockSDK({ * responses: [ * { content: "Hello from mock!" }, * { content: "Second response" }, * ], * }); * const model = mock.model({ name: "gpt-4o" }); * const result = await model.complete([{ role: "user", content: "Hi" }]); * console.log(result.content); // "Hello from mock!" */ declare function MockSDK(config?: MockSDKConfig): Omit & { /** * Narrower than `SDKAdapterContract.model()` on purpose — the * instance really is a `MockModel`, so tests can reach `.calls` / * `.reset()` straight off the returned model instead of digging it * back out of `models`. Still satisfies the adapter contract: * `MockModel` implements `ModelContract`. */ model(modelConfig: ModelConfig): MockModel; /** All model instances created by this SDK — for inspecting calls in tests */ models: MockModel[]; /** All image-model instances created by this SDK — for inspecting calls in tests */ imageModels: MockImageModel[]; /** All speech-model instances created by this SDK — for inspecting calls in tests */ speechModels: MockSpeechModel[]; /** All transcription-model instances created by this SDK — for inspecting calls in tests */ transcriptionModels: MockTranscriptionModel[]; }; //#endregion export { MockSDK }; //# sourceMappingURL=mock-sdk.d.mts.map