declare namespace requests_d_exports { export { cancel, getForWorkflow, list, recordExecutionTerminal, restart, start, status }; } export declare const start: import("convex/server").RegisteredMutation<"public", { metadata?: Record | undefined; requester: { actorRef: string; capabilities: string[]; metadata?: { [x: string]: string; } | undefined; }; resourceRef: string; resourceType: string; scopeRef: string; workflow: { schemaVersion: 1; compatibilityKey: string; name: string; steps: ({ kind: "mutation"; key: string; callback: { kind: "mutation"; handle: string; retry: boolean; }; } | { kind: "action"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "notify"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "decision"; key: string; decisions: ("approved" | "rejected")[]; quorum: { kind: "count"; approvals: number; }; makerChecker: boolean; expiresAfterMs?: number | undefined; } | { kind: "branch"; key: string; approvedStepKey: string; rejectedStepKey: string; })[]; }; }, Promise<{ runId: import("convex/values").GenericId<"approvalRuns">; }>>; export declare const cancel: import("convex/server").RegisteredMutation<"public", { actor: { actorRef: string; capabilities: string[]; metadata?: { [x: string]: string; } | undefined; }; compatibilityKey: string; runId: import("convex/values").GenericId<"approvalRuns">; }, Promise<{ state: 'canceled'; }>>; export declare const restart: import("convex/server").RegisteredMutation<"public", { compatibilityKey: string; runId: import("convex/values").GenericId<"approvalRuns">; }, Promise>; export declare const status: import("convex/server").RegisteredQuery<"public", { compatibilityKey: string; runId: import("convex/values").GenericId<"approvalRuns">; }, Promise<{ run: { _creationTime: number; _id: import("convex/values").GenericId<"approvalRuns">; scopeRef: string; resourceType: string; resourceRef: string; requester: { actorRef: string; capabilities: string[]; metadata?: { [x: string]: string; } | undefined; }; metadata?: { [x: string]: string; } | undefined; workflow: { schemaVersion: 1; compatibilityKey: string; name: string; steps: ({ kind: "mutation"; key: string; callback: { kind: "mutation"; handle: string; retry: boolean; }; } | { kind: "action"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "notify"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "decision"; key: string; decisions: ("approved" | "rejected")[]; quorum: { kind: "count"; approvals: number; }; makerChecker: boolean; expiresAfterMs?: number | undefined; } | { kind: "branch"; key: string; approvedStepKey: string; rejectedStepKey: string; })[]; }; state: "approved" | "canceled" | "expired" | "pending" | "rejected"; currentStepKey?: string | undefined; executionFailedStepKey?: string | undefined; expiresAt?: number | undefined; workflowId?: string | undefined; createdAt: number; updatedAt: number; terminalAt?: number | undefined; }; execution: { type: 'failed'; error: string; } | { error?: undefined; type: "canceled" | "completed" | "inProgress"; } | null; } | null>>; export declare const list: import("convex/server").RegisteredQuery<"public", { paginationOpts: { id?: number; endCursor?: string | null; maximumRowsRead?: number; maximumBytesRead?: number; numItems: number; cursor: string | null; }; scopeRef: string; state?: "approved" | "canceled" | "expired" | "pending" | "rejected" | undefined; }, Promise; scopeRef: string; resourceType: string; resourceRef: string; requester: { actorRef: string; capabilities: string[]; metadata?: { [x: string]: string; } | undefined; }; metadata?: { [x: string]: string; } | undefined; workflow: { schemaVersion: 1; compatibilityKey: string; name: string; steps: ({ kind: "mutation"; key: string; callback: { kind: "mutation"; handle: string; retry: boolean; }; } | { kind: "action"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "notify"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "decision"; key: string; decisions: ("approved" | "rejected")[]; quorum: { kind: "count"; approvals: number; }; makerChecker: boolean; expiresAfterMs?: number | undefined; } | { kind: "branch"; key: string; approvedStepKey: string; rejectedStepKey: string; })[]; }; state: "approved" | "canceled" | "expired" | "pending" | "rejected"; currentStepKey?: string | undefined; executionFailedStepKey?: string | undefined; expiresAt?: number | undefined; workflowId?: string | undefined; createdAt: number; updatedAt: number; terminalAt?: number | undefined; }>>>; export declare const getForWorkflow: import("convex/server").RegisteredQuery<"internal", { runId: import("convex/values").GenericId<"approvalRuns">; }, Promise<{ _creationTime: number; _id: import("convex/values").GenericId<"approvalRuns">; scopeRef: string; resourceType: string; resourceRef: string; requester: { actorRef: string; capabilities: string[]; metadata?: { [x: string]: string; } | undefined; }; metadata?: { [x: string]: string; } | undefined; workflow: { schemaVersion: 1; compatibilityKey: string; name: string; steps: ({ kind: "mutation"; key: string; callback: { kind: "mutation"; handle: string; retry: boolean; }; } | { kind: "action"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "notify"; key: string; callback: { kind: "action"; handle: string; retry: boolean; }; } | { kind: "decision"; key: string; decisions: ("approved" | "rejected")[]; quorum: { kind: "count"; approvals: number; }; makerChecker: boolean; expiresAfterMs?: number | undefined; } | { kind: "branch"; key: string; approvedStepKey: string; rejectedStepKey: string; })[]; }; state: "approved" | "canceled" | "expired" | "pending" | "rejected"; currentStepKey?: string | undefined; executionFailedStepKey?: string | undefined; expiresAt?: number | undefined; workflowId?: string | undefined; createdAt: number; updatedAt: number; terminalAt?: number | undefined; } | null>>; export declare const recordExecutionTerminal: import("convex/server").RegisteredMutation<"internal", { failedStepKey?: string | undefined; outcome: "completed" | "failed"; runId: import("convex/values").GenericId<"approvalRuns">; }, Promise>; //#endregion export { requests_d_exports }; //# sourceMappingURL=requests.d.mts.map