import { Store } from "../store.js"; import type { LoopStorageContract, LoopStorageMethodName } from "./contract.js"; type StoreMethod = Store[K] extends (...args: infer Args) => infer Result ? { args: Args; result: Result; } : never; export declare class SqliteLoopStorage implements LoopStorageContract { readonly store: Store; readonly backend = "sqlite"; readonly supportsRemoteRunners = false; constructor(store?: Store); close(): Promise; private call; createLoop(...args: StoreMethod<"createLoop">["args"]): Promise; getLoop(...args: StoreMethod<"getLoop">["args"]): Promise; findLoopByName(...args: StoreMethod<"findLoopByName">["args"]): Promise; requireLoop(...args: StoreMethod<"requireLoop">["args"]): Promise; requireUniqueLoop(...args: StoreMethod<"requireUniqueLoop">["args"]): Promise; listLoops(...args: StoreMethod<"listLoops">["args"]): Promise; dueLoops(...args: StoreMethod<"dueLoops">["args"]): Promise; updateLoop(...args: StoreMethod<"updateLoop">["args"]): Promise; mutateLoop(...args: StoreMethod<"mutateLoop">["args"]): Promise; getLoopMutationResult(...args: StoreMethod<"getLoopMutationResult">["args"]): Promise; advanceLoopIfCurrent(...args: StoreMethod<"advanceLoopIfCurrent">["args"]): Promise; tripCircuitBreakerIfCurrent(...args: StoreMethod<"tripCircuitBreakerIfCurrent">["args"]): Promise; expireLoopIfCurrent(...args: StoreMethod<"expireLoopIfCurrent">["args"]): Promise; renameLoop(...args: StoreMethod<"renameLoop">["args"]): Promise; archiveLoop(...args: StoreMethod<"archiveLoop">["args"]): Promise; unarchiveLoop(...args: StoreMethod<"unarchiveLoop">["args"]): Promise; deleteLoop(...args: StoreMethod<"deleteLoop">["args"]): Promise; upsertMigrationLoop(...args: StoreMethod<"upsertMigrationLoop">["args"]): Promise; upsertMigrationRun(...args: StoreMethod<"upsertMigrationRun">["args"]): Promise; upsertMigrationWorkflow(...args: StoreMethod<"upsertMigrationWorkflow">["args"]): Promise; createWorkflow(...args: StoreMethod<"createWorkflow">["args"]): Promise; getWorkflow(...args: StoreMethod<"getWorkflow">["args"]): Promise; requireWorkflow(...args: StoreMethod<"requireWorkflow">["args"]): Promise; listWorkflows(...args: StoreMethod<"listWorkflows">["args"]): Promise; countWorkflows(...args: StoreMethod<"countWorkflows">["args"]): Promise; archiveWorkflow(...args: StoreMethod<"archiveWorkflow">["args"]): Promise; createWorkflowInvocation(...args: StoreMethod<"createWorkflowInvocation">["args"]): Promise; getWorkflowInvocation(...args: StoreMethod<"getWorkflowInvocation">["args"]): Promise; listWorkflowInvocations(...args: StoreMethod<"listWorkflowInvocations">["args"]): Promise; upsertWorkflowWorkItem(...args: StoreMethod<"upsertWorkflowWorkItem">["args"]): Promise; getWorkflowWorkItem(...args: StoreMethod<"getWorkflowWorkItem">["args"]): Promise; listWorkflowWorkItems(...args: StoreMethod<"listWorkflowWorkItems">["args"]): Promise; countActiveWorkflowWorkItems(...args: StoreMethod<"countActiveWorkflowWorkItems">["args"]): Promise<{ global: number; project: number; projectGroup?: number; }>; admitWorkflowWorkItem(...args: StoreMethod<"admitWorkflowWorkItem">["args"]): Promise; createGoal(...args: StoreMethod<"createGoal">["args"]): Promise; getGoal(...args: StoreMethod<"getGoal">["args"]): Promise; requireGoal(...args: StoreMethod<"requireGoal">["args"]): Promise; findGoalByContext(...args: StoreMethod<"findGoalByContext">["args"]): Promise; listGoals(...args: StoreMethod<"listGoals">["args"]): Promise; createGoalPlanNodes(...args: StoreMethod<"createGoalPlanNodes">["args"]): Promise; listGoalPlanNodes(...args: StoreMethod<"listGoalPlanNodes">["args"]): Promise; updateGoalStatus(...args: StoreMethod<"updateGoalStatus">["args"]): Promise; updateGoalPlanNode(...args: StoreMethod<"updateGoalPlanNode">["args"]): Promise; recordGoalEvent(...args: StoreMethod<"recordGoalEvent">["args"]): Promise; listGoalRuns(...args: StoreMethod<"listGoalRuns">["args"]): Promise; createWorkflowRun(...args: StoreMethod<"createWorkflowRun">["args"]): Promise; getWorkflowRun(...args: StoreMethod<"getWorkflowRun">["args"]): Promise; requireWorkflowRun(...args: StoreMethod<"requireWorkflowRun">["args"]): Promise; listWorkflowRuns(...args: StoreMethod<"listWorkflowRuns">["args"]): Promise; listWorkflowStepRuns(...args: StoreMethod<"listWorkflowStepRuns">["args"]): Promise; getWorkflowStepRun(...args: StoreMethod<"getWorkflowStepRun">["args"]): Promise; isWorkflowRunTerminal(...args: StoreMethod<"isWorkflowRunTerminal">["args"]): Promise; startWorkflowStepRun(...args: StoreMethod<"startWorkflowStepRun">["args"]): Promise; markWorkflowStepPid(...args: StoreMethod<"markWorkflowStepPid">["args"]): Promise; recordWorkflowStepProgress(...args: StoreMethod<"recordWorkflowStepProgress">["args"]): Promise; recoverWorkflowRun(...args: StoreMethod<"recoverWorkflowRun">["args"]): Promise<{ run: import("../../types.js").WorkflowRun; recoveredSteps: import("../../types.js").WorkflowStepRun[]; }>; finalizeWorkflowStepRun(...args: StoreMethod<"finalizeWorkflowStepRun">["args"]): Promise; skipWorkflowStepRun(...args: StoreMethod<"skipWorkflowStepRun">["args"]): Promise; finalizeWorkflowRun(...args: StoreMethod<"finalizeWorkflowRun">["args"]): Promise; appendWorkflowEvent(...args: StoreMethod<"appendWorkflowEvent">["args"]): Promise; listWorkflowEvents(...args: StoreMethod<"listWorkflowEvents">["args"]): Promise; recordRunProcess(...args: StoreMethod<"recordRunProcess">["args"]): Promise; createSkippedRun(...args: StoreMethod<"createSkippedRun">["args"]): Promise; getRun(...args: StoreMethod<"getRun">["args"]): Promise; getRunBySlot(...args: StoreMethod<"getRunBySlot">["args"]): Promise; nextRetryableRun(...args: StoreMethod<"nextRetryableRun">["args"]): Promise; claimRun(...args: StoreMethod<"claimRun">["args"]): Promise; finalizeRun(...args: StoreMethod<"finalizeRun">["args"]): Promise; heartbeatRunLease(...args: StoreMethod<"heartbeatRunLease">["args"]): Promise; listRuns(...args: StoreMethod<"listRuns">["args"]): Promise; listRecoveredLeaseRunsPage(...args: StoreMethod<"listRecoveredLeaseRunsPage">["args"]): Promise; writeRunReceipt(...args: StoreMethod<"writeRunReceipt">["args"]): Promise; getRunReceipt(...args: StoreMethod<"getRunReceipt">["args"]): Promise; listRunReceipts(...args: StoreMethod<"listRunReceipts">["args"]): Promise; listExpiredRunLeaseCandidates(...args: StoreMethod<"listExpiredRunLeaseCandidates">["args"]): Promise; recoverExpiredRunLeases(...args: StoreMethod<"recoverExpiredRunLeases">["args"]): Promise; recoverExpiredRunLeasesDetailed(...args: StoreMethod<"recoverExpiredRunLeasesDetailed">["args"]): Promise; countLoops(...args: StoreMethod<"countLoops">["args"]): Promise; countRuns(...args: StoreMethod<"countRuns">["args"]): Promise; pruneHistory(...args: StoreMethod<"pruneHistory">["args"]): Promise; acquireDaemonLease(...args: StoreMethod<"acquireDaemonLease">["args"]): Promise; heartbeatDaemonLease(...args: StoreMethod<"heartbeatDaemonLease">["args"]): Promise; releaseDaemonLease(...args: StoreMethod<"releaseDaemonLease">["args"]): Promise; getDaemonLease(...args: StoreMethod<"getDaemonLease">["args"]): Promise; } export declare function createSqliteLoopStorage(path?: string): SqliteLoopStorage; export {};