import type { WorkflowResultResponse } from '../api/generated/api.js'; type WorkflowResult = Pick; declare const ERROR_STATUS_VALUES: readonly ["failed", "cancelled", "terminated", "timed_out"]; export type ErrorStatus = typeof ERROR_STATUS_VALUES[number]; export type TerminalStatus = 'completed' | ErrorStatus; /** * Maps a raw status to a canonical error status, or `undefined` if it is not one. * Legacy spellings (`canceled`) are normalized so callers only ever see the * current API vocabulary — until `normalizeWorkflowStatus` is removed. */ export declare function isErrorStatus(status: string | null | undefined): ErrorStatus | undefined; /** * Maps a raw status to a canonical terminal status, or `undefined` if it is not * one. Same normalization contract as `isErrorStatus`. */ export declare function isTerminalStatus(status: string | null | undefined): TerminalStatus | undefined; export declare function formatWorkflowResult(result: WorkflowResult): string; export {};