import type { SupabaseClient } from '@supabase/supabase-js'; import type { Database } from '../../../types/database.js'; import { type HistoryState } from 'blendtype'; export declare function addHistory(name: string, ownerId: string): Promise<{ id: number; galaxyId: string; } | undefined>; export declare function synchronizeHistory(historyId: number, ownerId: string, supabase: SupabaseClient): Promise; export declare function synchronizeJobs(analysisId: number, historyId: number, ownerId: string, supabase: SupabaseClient): Promise; export declare function isHistoryTerminalState(state: HistoryState): boolean; export declare function isHistorySync(historyId: number, analysisId: number, ownerId: string): Promise;