/**
 * Helper functions for converting database rows to domain types.
 */
import Database from 'better-sqlite3';
import { AcceptanceCriterion, Spec, StateCategory, Ticket } from '../types.js';
import { SpecRow, TicketRow, WorkflowStatusRow } from './types.js';
/**
 * Convert a database row to a Ticket object.
 * Fetches related data (subtasks, metadata, status info).
 */
export declare function rowToTicket(db: Database.Database, row: TicketRow): Promise<Ticket>;
/**
 * Get acceptance criteria for a ticket (sync version).
 */
export declare function getAcceptanceCriteriaSync(db: Database.Database, ticketId: string): AcceptanceCriterion[];
/**
 * Convert a database row to a Spec object.
 */
export declare function rowToSpec(row: SpecRow): Spec;
/**
 * Convert a workflow status database row to WorkflowStatus.
 */
export declare function rowToStatus(row: WorkflowStatusRow): {
    id: string;
    workflowId: string;
    name: string;
    category: StateCategory;
    position: number;
    color: string | undefined;
    description: string | undefined;
    isDefault: boolean;
    createdAt: Date;
};
