import { runs, runSteps } from './schema/runs.js'; import type { StoredRun, StoredRunStep } from '@opensip-cli/contracts'; import type { DrizzleHandle } from '@opensip-cli/datastore/internal'; /** Package-private identity contract shared by Run writes and public reads. */ export declare function isResolvableStoredRunId(value: unknown): value is string; /** Package-private validated Run projection shared by both write paths. */ export interface PreparedRunWrite { readonly runId: string; readonly row: typeof runs.$inferInsert; } /** Package-private validated RunStep projection shared by both write paths. */ export interface PreparedRunStepWrite { readonly stepId: string; readonly runId: string; readonly sessionId?: string; readonly row: typeof runSteps.$inferInsert; } /** Validate and project a stored parent Run into its persistence row. */ export declare function prepareRunWrite(run: StoredRun): PreparedRunWrite; /** Validate and project a stored RunStep into its persistence row. */ export declare function prepareRunStepWrite(step: StoredRunStep): PreparedRunStepWrite; /** Upsert one previously validated parent-Run row in the supplied transaction. */ export declare function writePreparedRun(tx: DrizzleHandle, prepared: PreparedRunWrite): void; /** Upsert one previously validated RunStep row in the supplied transaction. */ export declare function writePreparedRunStep(tx: DrizzleHandle, prepared: PreparedRunStepWrite): void; /** Hydrate one persisted parent-Run row into its contract projection. */ export declare function runFromRow(row: typeof runs.$inferSelect): StoredRun; /** Hydrate one persisted RunStep row into its contract projection. */ export declare function stepFromRow(row: typeof runSteps.$inferSelect): StoredRunStep; //# sourceMappingURL=run-write-shapes.d.ts.map