import { type ExecuteRequest, type ExecutionResult } from '../../generated/sdk/v1alpha/sdk_pb'; import { type ConfigHandlerParams } from '../utils/config'; import type { SecretsProvider, Workflow } from '../workflow'; import { Runtime } from './runtime'; export declare class Runner { private readonly config; private readonly request; private constructor(); static newRunner(configHandlerParams?: ConfigHandlerParams): Promise>; private static getRequest; run(initFn: (config: TConfig, secretsProvider: SecretsProvider) => Promise> | Workflow): Promise; handleExecutionPhase(req: ExecuteRequest, workflow: Workflow, runtime: Runtime): Promise; handleSubscribePhase(req: ExecuteRequest, workflow: Workflow): ExecutionResult; }