import type { SupabaseClient } from '@supabase/supabase-js'; import type { Database } from '../../../types/database.js'; import { type JobState } from 'blendtype'; import { jobs } from '../../db/schema/galaxy/jobs.js'; export declare function getOrCreateJob(analysisId: number, galaxyJobId: string, stepId: number, ownerId: string): Promise; export declare function synchronizeJob(galaxyJobId: string, stepId: number, analysisId: number, historyId: number, galaxyDatasetIds: string[], ownerId: string, supabase: SupabaseClient): Promise; export declare function synchronizeOutputDatasets(jobId: number, galaxyDatasetIds: string[], analysisId: number, historyId: number, ownerId: string, supabase: SupabaseClient): Promise; export declare function isJobSync(jobId: number, datasetIds: string[] | undefined, ownerId: string): Promise; export declare function isJobTerminalState(state: JobState): boolean;