import { type ContractProblem } from '../results';
export interface WorkflowSdkErrorConstructors {
    FatalError: new (message: string, options?: Record<string, unknown>) => Error;
    RetryableError: new (message: string, options?: Record<string, unknown>) => Error;
}
export declare function toWorkflowSdkError(error: unknown, constructors: WorkflowSdkErrorConstructors): Error;
export declare function problemToWorkflowSdkError(problem: ContractProblem<string, Record<string, unknown>>, constructors: WorkflowSdkErrorConstructors): Error;
export declare function throwWorkflowSdkError(error: unknown, constructors: WorkflowSdkErrorConstructors): never;
