import { type MutationCtx } from "./_generated/server.js"; import { type Options, type RunResult } from "./schema.js"; import type { Id } from "./_generated/dataModel.js"; export declare function startRun(ctx: MutationCtx, functionHandle: string, functionArgs: any, options: Options): Promise>; export declare const execute: import("convex/server").RegisteredAction<"internal", { runId: import("convex/values").GenericId<"runs">; }, Promise>; export declare const heartbeat: import("convex/server").RegisteredMutation<"internal", { runId: import("convex/values").GenericId<"runs">; }, Promise>; export declare const load: import("convex/server").RegisteredQuery<"internal", { runId: import("convex/values").GenericId<"runs">; }, Promise<{ _id: import("convex/values").GenericId<"runs">; _creationTime: number; options: { runAt?: number | undefined; runAfter?: number | undefined; onComplete?: string | undefined; initialBackoffMs: number; base: number; maxFailures: number; logLevel: "DEBUG" | "INFO" | "WARN" | "ERROR"; }; state: { schedulerId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; type: "inProgress"; startTime: number; } | { type: "completed"; completedAt: number; result: { type: "success"; returnValue: any; } | { type: "failed"; error: string; } | { type: "canceled"; }; }; functionHandle: string; functionArgs: any; numFailures: number; }>>; export declare const finishExecution: import("convex/server").RegisteredMutation<"internal", { runId: Id<"runs">; result: RunResult; }, Promise>; export declare function finishExecutionHandler(ctx: MutationCtx, args: { runId: Id<"runs">; result: RunResult; }): Promise; export declare const cleanupExpiredRuns: import("convex/server").RegisteredMutation<"internal", {}, Promise>; //# sourceMappingURL=run.d.ts.map