import { type Infer } from "convex/values"; declare const logLevel: import("convex/values").VUnion<"DEBUG" | "INFO" | "WARN" | "ERROR", [import("convex/values").VLiteral<"DEBUG", "required">, import("convex/values").VLiteral<"INFO", "required">, import("convex/values").VLiteral<"WARN", "required">, import("convex/values").VLiteral<"ERROR", "required">], "required", never>; export type LogLevel = Infer; export declare const options: import("convex/values").VObject<{ runAt?: number | undefined; runAfter?: number | undefined; onComplete?: string | undefined; initialBackoffMs: number; base: number; maxFailures: number; logLevel: "DEBUG" | "INFO" | "WARN" | "ERROR"; }, { initialBackoffMs: import("convex/values").VFloat64; base: import("convex/values").VFloat64; maxFailures: import("convex/values").VFloat64; logLevel: import("convex/values").VUnion<"DEBUG" | "INFO" | "WARN" | "ERROR", [import("convex/values").VLiteral<"DEBUG", "required">, import("convex/values").VLiteral<"INFO", "required">, import("convex/values").VLiteral<"WARN", "required">, import("convex/values").VLiteral<"ERROR", "required">], "required", never>; runAt: import("convex/values").VFloat64; runAfter: import("convex/values").VFloat64; onComplete: import("convex/values").VString; }, "required", "initialBackoffMs" | "base" | "maxFailures" | "logLevel" | "runAt" | "runAfter" | "onComplete">; export type Options = Infer; export declare const runResult: import("convex/values").VUnion<{ type: "success"; returnValue: any; } | { type: "failed"; error: string; } | { type: "canceled"; }, [import("convex/values").VObject<{ type: "success"; returnValue: any; }, { type: import("convex/values").VLiteral<"success", "required">; returnValue: import("convex/values").VAny; }, "required", "type" | "returnValue" | `returnValue.${string}`>, import("convex/values").VObject<{ type: "failed"; error: string; }, { type: import("convex/values").VLiteral<"failed", "required">; error: import("convex/values").VString; }, "required", "type" | "error">, import("convex/values").VObject<{ type: "canceled"; }, { type: import("convex/values").VLiteral<"canceled", "required">; }, "required", "type">], "required", "type" | "returnValue" | `returnValue.${string}` | "error">; export type RunResult = Infer; export declare const runState: import("convex/values").VUnion<{ 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"; }; }, [import("convex/values").VObject<{ schedulerId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; type: "inProgress"; startTime: number; }, { type: import("convex/values").VLiteral<"inProgress", "required">; schedulerId: import("convex/values").VId | undefined, "optional">; startTime: import("convex/values").VFloat64; }, "required", "type" | "schedulerId" | "startTime">, import("convex/values").VObject<{ type: "completed"; completedAt: number; result: { type: "success"; returnValue: any; } | { type: "failed"; error: string; } | { type: "canceled"; }; }, { type: import("convex/values").VLiteral<"completed", "required">; completedAt: import("convex/values").VFloat64; result: import("convex/values").VUnion<{ type: "success"; returnValue: any; } | { type: "failed"; error: string; } | { type: "canceled"; }, [import("convex/values").VObject<{ type: "success"; returnValue: any; }, { type: import("convex/values").VLiteral<"success", "required">; returnValue: import("convex/values").VAny; }, "required", "type" | "returnValue" | `returnValue.${string}`>, import("convex/values").VObject<{ type: "failed"; error: string; }, { type: import("convex/values").VLiteral<"failed", "required">; error: import("convex/values").VString; }, "required", "type" | "error">, import("convex/values").VObject<{ type: "canceled"; }, { type: import("convex/values").VLiteral<"canceled", "required">; }, "required", "type">], "required", "type" | "returnValue" | `returnValue.${string}` | "error">; }, "required", "type" | "completedAt" | "result" | "result.type" | "result.returnValue" | `result.returnValue.${string}` | "result.error">], "required", "type" | "schedulerId" | "startTime" | "completedAt" | "result" | "result.type" | "result.returnValue" | `result.returnValue.${string}` | "result.error">; export type RunState = Infer; declare const _default: import("convex/server").SchemaDefinition<{ runs: import("convex/server").TableDefinition | 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; }, { functionHandle: import("convex/values").VString; functionArgs: import("convex/values").VAny; options: import("convex/values").VObject<{ runAt?: number | undefined; runAfter?: number | undefined; onComplete?: string | undefined; initialBackoffMs: number; base: number; maxFailures: number; logLevel: "DEBUG" | "INFO" | "WARN" | "ERROR"; }, { initialBackoffMs: import("convex/values").VFloat64; base: import("convex/values").VFloat64; maxFailures: import("convex/values").VFloat64; logLevel: import("convex/values").VUnion<"DEBUG" | "INFO" | "WARN" | "ERROR", [import("convex/values").VLiteral<"DEBUG", "required">, import("convex/values").VLiteral<"INFO", "required">, import("convex/values").VLiteral<"WARN", "required">, import("convex/values").VLiteral<"ERROR", "required">], "required", never>; runAt: import("convex/values").VFloat64; runAfter: import("convex/values").VFloat64; onComplete: import("convex/values").VString; }, "required", "initialBackoffMs" | "base" | "maxFailures" | "logLevel" | "runAt" | "runAfter" | "onComplete">; state: import("convex/values").VUnion<{ 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"; }; }, [import("convex/values").VObject<{ schedulerId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined; type: "inProgress"; startTime: number; }, { type: import("convex/values").VLiteral<"inProgress", "required">; schedulerId: import("convex/values").VId | undefined, "optional">; startTime: import("convex/values").VFloat64; }, "required", "type" | "schedulerId" | "startTime">, import("convex/values").VObject<{ type: "completed"; completedAt: number; result: { type: "success"; returnValue: any; } | { type: "failed"; error: string; } | { type: "canceled"; }; }, { type: import("convex/values").VLiteral<"completed", "required">; completedAt: import("convex/values").VFloat64; result: import("convex/values").VUnion<{ type: "success"; returnValue: any; } | { type: "failed"; error: string; } | { type: "canceled"; }, [import("convex/values").VObject<{ type: "success"; returnValue: any; }, { type: import("convex/values").VLiteral<"success", "required">; returnValue: import("convex/values").VAny; }, "required", "type" | "returnValue" | `returnValue.${string}`>, import("convex/values").VObject<{ type: "failed"; error: string; }, { type: import("convex/values").VLiteral<"failed", "required">; error: import("convex/values").VString; }, "required", "type" | "error">, import("convex/values").VObject<{ type: "canceled"; }, { type: import("convex/values").VLiteral<"canceled", "required">; }, "required", "type">], "required", "type" | "returnValue" | `returnValue.${string}` | "error">; }, "required", "type" | "completedAt" | "result" | "result.type" | "result.returnValue" | `result.returnValue.${string}` | "result.error">], "required", "type" | "schedulerId" | "startTime" | "completedAt" | "result" | "result.type" | "result.returnValue" | `result.returnValue.${string}` | "result.error">; numFailures: import("convex/values").VFloat64; }, "required", "options" | "state" | "functionHandle" | "functionArgs" | "numFailures" | "options.initialBackoffMs" | "options.base" | "options.maxFailures" | "options.logLevel" | "options.runAt" | "options.runAfter" | "options.onComplete" | "state.type" | "state.schedulerId" | "state.startTime" | "state.completedAt" | "state.result" | "state.result.type" | "state.result.returnValue" | `state.result.returnValue.${string}` | "state.result.error" | `functionArgs.${string}`>, { by_state: ["state.type", "state.completedAt", "_creationTime"]; }, {}, {}>; }, true>; export default _default; //# sourceMappingURL=schema.d.ts.map