import { Client, MetadataBearer } from '@smithy/types'; import sinon, { SinonSandbox } from 'sinon'; import { AwsStub } from './awsClientStub'; /** * Creates and attaches a stub of the `Client#send()` method. Only this single method is mocked. * If method is already a stub, it's replaced. * @param client `Client` type or instance to replace the method * @param sandbox Optional sinon sandbox to use * @return Stub allowing to configure Client's behavior */ export declare const mockClient: (client: InstanceOrClassType>, { sandbox }?: { sandbox?: sinon.SinonSandbox | undefined; }) => AwsStub; type ClassType = { prototype: T; }; type InstanceOrClassType = T | ClassType; export {};