/** * @module Mockttp */ import { MockttpStandalone, StandaloneServerOptions } from "./standalone/mockttp-standalone"; import { Mockttp, MockttpOptions } from "./mockttp"; export { OngoingRequest, CompletedRequest } from "./types"; export interface MockedEndpoint { getSeenRequests(): Request[]; } export { Mockttp }; /** * Get a Mockttp instance on the local machine. * * In most simple environments, you can call this method directly and immediately * get a Mockttp instance and start mocking servers. * * In node, the mocked servers will run in process and require no further setup. * * In browsers this is an alias for getRemote. You'll need to start a standalone server * outside your tests before calling this, which will create and manage your fake servers * outside the browser. */ export declare function getLocal(options?: MockttpOptions): Mockttp; /** * Get a Mockttp instance, controlled through a Mockttp standalone server. * * This connects to a Mockttp standalone server, and uses that to start * and stop mock servers. */ export declare function getRemote(options?: MockttpOptions): Mockttp; /** * Get a standalone server, which can be used remotely to create & manage mock servers. * * This function exists so you can set up these servers programmatically, but for most * usage you can just run your tests via the `mockttp` binary, which will automatically * start and stop a standalone server for you: * * ``` * mockttp -c * ``` */ export declare function getStandalone(options?: StandaloneServerOptions): MockttpStandalone;