import type { DatabaseSync } from 'node:sqlite'; import type { SessionMetadata } from '../../session/types.js'; import { type SessionRow } from './row-mappers.js'; export declare const SESSION_COLUMNS = "\n s.conversation_id, s.agent_id, s.active_transcript_id, s.status, s.name, s.tags_json,\n s.created_at, s.updated_at, s.last_accessed_at, s.session_started_at, s.last_interaction_at,\n s.source_channel, s.source_chat_id, s.session_type, s.hidden_from_session_list,\n s.parent_conversation_id, s.workflow_run_id, s.workflow_definition_id, s.workflow_agent_id, s.workflow_agent_label,\n s.project_id, s.routing_json, s.custom_data_json,\n s.message_count, s.estimated_tokens, s.compacted_count,\n s.last_flushed_at, s.flush_count,\n t.cwd AS cwd\n"; export declare const SESSION_FROM_JOIN = "\n FROM sessions s\n LEFT JOIN transcripts t ON t.transcript_id = s.active_transcript_id\n"; export declare function readSessionRow(db: DatabaseSync, conversationId: string): SessionRow | undefined; /** Read metadata without importing session lifecycle operations. */ export declare function getSessionMetadata(conversationId: string): SessionMetadata | null;