/** Subset of WorkerProfile fields used by `chant run`. */ export interface WorkerProfile { address: string; namespace: string; taskQueue: string; tls?: boolean | { serverNameOverride?: string; }; apiKey?: string | { env: string; }; autoStart?: boolean; } export interface TemporalClientModule { Connection: { connect(opts: Record): Promise; }; Client: new (opts: Record) => TemporalClientHandle; } export interface TemporalClientHandle { workflow: { start(workflowFn: unknown, opts: Record): Promise; getHandle(workflowId: string): WorkflowHandleRaw; list(opts?: Record): AsyncIterable; }; } export interface WorkflowHandleRaw { workflowId: string; firstExecutionRunId?: string; result(): Promise; describe(): Promise; fetchHistory(): Promise; signal(signalName: string, ...args: unknown[]): Promise; cancel(): Promise; } export interface WorkflowExecutionDescription { workflowId: string; runId: string; status: { name: string; }; startTime: Date; closeTime?: Date; taskQueue: string; type: { name: string; }; } export interface WorkflowExecutionInfo { workflowId: string; runId: string; type: { name: string; }; status: { name: string; }; startTime: Date; closeTime?: Date; } export interface WorkflowHistoryRaw { events?: HistoryEvent[]; } export interface HistoryEvent { eventType?: string; eventTime?: Date; activityTaskCompletedEventAttributes?: { scheduledEventId?: string | number; }; activityTaskScheduledEventAttributes?: { activityId?: string; activityType?: { name?: string; }; }; activityTaskFailedEventAttributes?: { failure?: { message?: string; }; }; workflowExecutionCompletedEventAttributes?: unknown; workflowExecutionFailedEventAttributes?: { failure?: { message?: string; }; }; } /** * Dynamically import @temporalio/client from the user's project node_modules. * Fails with a helpful message if not installed. */ export declare function loadTemporalClient(): Promise; /** * Build a Temporal Connection.connect() options object from a worker profile. */ export declare function connectionOptions(profile: WorkerProfile): Record; /** * Deterministic workflow ID for an Op — allows status/signal/cancel/log * without storing run IDs locally. */ export declare function resolveWorkflowId(opName: string): string; /** * Resolve a named profile from the chant config. * Falls back to defaultProfile then "local". */ export declare function resolveProfile(config: Record, profileName?: string): WorkerProfile; //# sourceMappingURL=run-client.d.ts.map