import * as Ref from "@confect/core/Ref"; import type { GenericActionCtx } from "convex/server"; import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import type * as Schema from "effect/Schema"; import * as MutationTransactionContext from "./MutationTransactionContext"; export type Options = MutationTransactionContext.MutationOptions; export declare const MutationRunner: Context.Service<{ runMutation: { (mutation: Mutation, ...args: [...Ref.OptionalArgs, options?: undefined]): Effect.Effect, Ref.Error | Schema.SchemaError>; (mutation: Mutation, args: Ref.Args, options: Options | undefined): Effect.Effect, Ref.Error | Schema.SchemaError, MutationTransactionContext.MutationTransactionContext>; }; }, { runMutation: { (mutation: Mutation, ...args: [...Ref.OptionalArgs, options?: undefined]): Effect.Effect, Ref.Error | Schema.SchemaError>; (mutation: Mutation, args: Ref.Args, options: Options | undefined): Effect.Effect, Ref.Error | Schema.SchemaError, MutationTransactionContext.MutationTransactionContext>; }; }>; export type MutationRunner = typeof MutationRunner.Identifier; export declare const layer: (runMutation: GenericActionCtx["runMutation"]) => Layer.Layer<{ runMutation: { (mutation: Mutation, ...args: [...Ref.OptionalArgs, options?: undefined]): Effect.Effect, Ref.Error | Schema.SchemaError>; (mutation: Mutation, args: Ref.Args, options: Options | undefined): Effect.Effect, Ref.Error | Schema.SchemaError, MutationTransactionContext.MutationTransactionContext>; }; }, never, never>; //# sourceMappingURL=MutationRunner.d.ts.map