import type { ClientOptions, TestService, WorkflowClientOptions, WorkflowResultOptions } from '@temporalio/client'; import { Client, WorkflowClient } from '@temporalio/client'; /** * Subset of the "normal" client options that are used to create a client for the test environment. */ export type ClientOptionsForTestEnv = Omit; /** * A client with the exact same API as the "normal" client with one exception: * when `TestEnvClient.workflow` (an instance of {@link TimeSkippingWorkflowClient}) * waits on a Workflow's result, it will enable time skipping in the Test Server. */ export declare class TimeSkippingClient extends Client { constructor(options: ClientOptions); } /** * A client with the exact same API as the "normal" client with one exception: when this client * waits on a Workflow's result, it will enable time skipping in the Test Server. */ export declare class TimeSkippingWorkflowClient extends WorkflowClient { protected readonly testService: TestService; constructor(options: WorkflowClientOptions); /** * Gets the result of a Workflow execution. * * @see {@link WorkflowClient.result} */ result(workflowId: string, runId?: string | undefined, opts?: WorkflowResultOptions | undefined): Promise; }