/** Copyright (c) 2018 Uber Technologies, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /// /// import assert from 'assert'; import FusionApp from 'fusion-core'; import type { FusionPlugin, Token } from 'fusion-core'; import { render, request } from './simulate'; export { createRequestContext, createRenderContext } from './mock-context'; export type Simulator = { request: ReturnType; render: ReturnType; getService(token: Token): T; }; export declare function getSimulator(app: FusionApp, testPlugin?: FusionPlugin): Simulator; export declare function getService(appCreator: () => FusionApp, plugin: FusionPlugin): TService; type MatchSnapshotType = (tree: unknown, snapshotName?: string | null) => void; type CallableAssertType = (assertArg: typeof assert & { matchSnapshot: MatchSnapshotType; }) => void | Promise; type TestType = (name: string, assert: CallableAssertType, timeout?: number) => void; declare const mockFunctionExport: typeof jest.fn; declare const testExport: TestType; export { mockFunctionExport as mockFunction, testExport as test }; //# sourceMappingURL=index.d.ts.map