import type { EdgeTransfer, NodeAttempt, NodeAttemptStatus, WorkflowArchiveStateRecord, WorkflowCheckpoint, WorkflowDefinitionSnapshot, WorkflowDeleteTombstoneRecord, WorkflowDraftRecord, WorkflowDraftValidationState, WorkflowEventRecord, WorkflowHumanActionKind, WorkflowHumanActionRecord, WorkflowIdentityRecord, WorkflowPublishedVersionRecord, WorkflowRecordSource, WorkflowRecordStatus, WorkflowRun, WorkflowRunStatus, WorkflowWakeup, WorkflowWaitToken, WorkflowWaitTokenStatus } from "../types/index.js"; export type WorkflowRunRow = { id: string; workflow_id: string; workflow_version: string; workflow_definition_hash: string | null; definition_snapshot_id: string | null; parent_run_id: string | null; parent_node_attempt_id: string | null; pibo_session_id: string | null; environment_json: string | null; status: WorkflowRunStatus; current_node_id: string | null; current_edge_id: string | null; current_status: WorkflowRunStatus | null; current_json: string; input_json: string; output_json: string | null; output_present: number; state_json: string; checkpoint_json: string | null; validation_json: string | null; created_at: string; updated_at: string; completed_at: string | null; failed_at: string | null; cancelled_at: string | null; }; export type WorkflowDefinitionSnapshotRow = { id: string; workflow_id: string; workflow_version: string; definition_hash: string; compiled_definition_json: string; created_at: string; }; export type WorkflowIdentityRow = { workflow_id: string; source: WorkflowRecordSource; title: string; description: string | null; tags_json: string; current_draft_id: string | null; latest_version: string | null; created_by: string | null; created_at: string; updated_by: string | null; updated_at: string; }; export type WorkflowDraftRow = { draft_id: string; workflow_id: string; source: WorkflowRecordSource; status: WorkflowRecordStatus; base_workflow_id: string | null; base_workflow_version: string | null; base_definition_hash: string | null; target_workflow_version: string | null; version_intent: "patch" | "minor" | "major"; definition_json: string; diagnostics_json: string; validation_json: string | null; validation_state: WorkflowDraftValidationState; revision: number; created_by: string | null; created_at: string; updated_by: string | null; updated_at: string; }; export type WorkflowArchiveStateRow = { workflow_id: string; source: WorkflowRecordSource; archived: number; archived_at: string | null; archived_by: string | null; archive_reason: string | null; updated_at: string; }; export type WorkflowDeleteTombstoneRow = { workflow_id: string; source: WorkflowRecordSource; deleted: number; deleted_at: string | null; deleted_by: string | null; last_known_title: string; last_known_version: string | null; last_definition_hash: string | null; created_at: string; }; export type WorkflowPublishedVersionRow = { workflow_id: string; version: string; source: WorkflowRecordSource; status: WorkflowRecordStatus; definition_hash: string; definition_json: string; published_from_draft_id: string | null; published_by: string | null; published_at: string; created_at: string; }; export type WorkflowEventRow = { id: string; workflow_run_id: string; type: string; node_id: string | null; edge_id: string | null; attempt_id: string | null; payload_json: string | null; created_at: string; }; export type WorkflowWaitTokenRow = { id: string; workflow_run_id: string; node_attempt_id: string | null; human_node_id: string | null; kind: string | null; available_actions_json: string | null; actions_json?: string | null; prompt: string; schema_json: string | null; status: WorkflowWaitTokenStatus; resume_payload_json: string | null; resume_payload_present: number; created_at: string; expires_at: string | null; resolved_at: string | null; resumed_at?: string | null; }; export type WorkflowNodeAttemptRow = { id: string; workflow_run_id: string; node_id: string; attempt_number: number | null; attempt?: number | null; kind: NodeAttempt["kind"]; status: NodeAttemptStatus; environment_json: string | null; input_json: string; output_json: string | null; output_present: number; local_state_json: string | null; metadata_json: string | null; error_json: string | null; lease_json: string | null; started_at: string | null; heartbeat_at: string | null; completed_at: string | null; failed_at: string | null; available_at: string | null; }; export type WorkflowEdgeTransferRow = { id: string; workflow_run_id: string; edge_id: string; source_node_attempt_id: string; target_node_id: string; payload_json: string; adapter_attempt_id: string | null; status: EdgeTransfer["status"]; created_at: string; }; export type WorkflowCheckpointRow = { id: string; workflow_run_id: string; namespace: string; cursor_json: string; state_json: string; pending_json: string; created_at: string; }; export type WorkflowWakeupRow = { id: string; workflow_run_id: string; node_attempt_id: string | null; kind: WorkflowWakeup["kind"]; available_at: string; correlation_id: string | null; payload_json: string | null; created_at: string; }; export type WorkflowHumanActionRow = { id: string; workflow_run_id: string; wait_token_id: string; action_id: string | null; kind: WorkflowHumanActionKind; actor_json: string | null; payload_json: string | null; created_at: string; }; export declare function workflowDefinitionSnapshotFromRow(row: WorkflowDefinitionSnapshotRow): WorkflowDefinitionSnapshot; export declare function workflowIdentityFromRow(row: WorkflowIdentityRow): WorkflowIdentityRecord; export declare function workflowDraftFromRow(row: WorkflowDraftRow): WorkflowDraftRecord; export declare function workflowArchiveStateFromRow(row: WorkflowArchiveStateRow): WorkflowArchiveStateRecord; export declare function workflowDeleteTombstoneFromRow(row: WorkflowDeleteTombstoneRow): WorkflowDeleteTombstoneRecord; export declare function workflowPublishedVersionFromRow(row: WorkflowPublishedVersionRow): WorkflowPublishedVersionRecord; export declare function workflowRunFromRow(row: WorkflowRunRow): WorkflowRun; export declare function workflowEventFromRow(row: WorkflowEventRow): WorkflowEventRecord; export declare function workflowWaitTokenFromRow(row: WorkflowWaitTokenRow): WorkflowWaitToken; export declare function workflowNodeAttemptFromRow(row: WorkflowNodeAttemptRow): NodeAttempt; export declare function workflowEdgeTransferFromRow(row: WorkflowEdgeTransferRow): EdgeTransfer; export declare function workflowCheckpointFromRow(row: WorkflowCheckpointRow): WorkflowCheckpoint; export declare function workflowWakeupFromRow(row: WorkflowWakeupRow): WorkflowWakeup; export declare function workflowHumanActionFromRow(row: WorkflowHumanActionRow): WorkflowHumanActionRecord; //# sourceMappingURL=row-mappers.d.ts.map