import type { FunctionSpec, RuntimeAndFunctionType } from "@confect/core"; import type * as FunctionProvenance from "@confect/core/FunctionProvenance"; import type * as NodeServices from "@effect/platform-node/NodeServices"; import type { Effect } from "effect"; import type * as ActionCtx from "./ActionCtx"; import type * as ActionRunner from "./ActionRunner"; import type * as Auth from "./Auth"; import type * as DatabaseReader from "./DatabaseReader"; import type * as DatabaseSchema from "./DatabaseSchema"; import type * as DatabaseWriter from "./DatabaseWriter"; import type * as DataModel from "./DataModel"; import type { ExecutionMetadata } from "./ExecutionMetadata"; import type { RequestMetadata } from "./RequestMetadata"; import type { TransactionMetadata } from "./TransactionMetadata"; import type * as MutationCtx from "./MutationCtx"; import type * as MutationRunner from "./MutationRunner"; import type { MutationTransactionContext } from "./MutationTransactionContext"; import type * as QueryCtx from "./QueryCtx"; import type * as QueryRunner from "./QueryRunner"; import type { QueryTransactionContext } from "./QueryTransactionContext"; import type * as RegisteredFunction from "./RegisteredFunction"; import type * as Scheduler from "./Scheduler"; import type { Storage } from "./Storage"; import type { StorageActionWriter } from "./StorageActionWriter"; import type { StorageReader } from "./StorageReader"; import type { StorageWriter } from "./StorageWriter"; import type * as VectorSearch from "./VectorSearch"; export type Handler = FunctionSpec_ extends FunctionSpec.WithFunctionProvenance ? ConvexProvenanceHandler : FunctionSpec_ extends FunctionSpec.WithFunctionProvenance ? ConfectProvenanceHandler : never; type ConvexProvenanceHandler> = RegisteredFunction.ConvexRegisteredFunction; type ConfectProvenanceHandler, R = never> = FunctionSpec_ extends FunctionSpec.WithFunctionType ? ConfectProvenanceQuery : FunctionSpec_ extends FunctionSpec.WithFunctionType ? ConfectProvenanceMutation : FunctionSpec_ extends FunctionSpec.WithRuntimeAndFunctionType ? ConvexRuntimeAction : FunctionSpec_ extends FunctionSpec.WithRuntimeAndFunctionType ? NodeRuntimeAction : never; export type QueryServices = DatabaseReader.DatabaseReader | Auth.Auth | ExecutionMetadata | TransactionMetadata | Storage | StorageReader | QueryRunner.QueryRunner | QueryTransactionContext | QueryCtx.QueryCtx>>; export type MutationServices = DatabaseReader.DatabaseReader | DatabaseWriter.DatabaseWriter | Auth.Auth | ExecutionMetadata | RequestMetadata | TransactionMetadata | Scheduler.Scheduler | Storage | StorageReader | StorageWriter | QueryRunner.QueryRunner | MutationRunner.MutationRunner | QueryTransactionContext | MutationTransactionContext | MutationCtx.MutationCtx>>; /** * Shared by both action runtimes. */ export type ActionServices = Scheduler.Scheduler | Auth.Auth | ExecutionMetadata | RequestMetadata | Storage | StorageReader | StorageWriter | StorageActionWriter | QueryRunner.QueryRunner | MutationRunner.MutationRunner | ActionRunner.ActionRunner | VectorSearch.VectorSearch> | ActionCtx.ActionCtx>>; export type ConfectProvenanceQuery, R = never> = Base | R>; export type ConfectProvenanceMutation, R = never> = Base | R>; export type ConvexRuntimeAction, R = never> = Base | R>; export type NodeRuntimeAction, R = never> = Base | NodeServices.NodeServices | R>; type Base = (args: FunctionSpec.Args) => Effect.Effect, FunctionSpec.Error, R>; export type Any = AnyConfectProvenance | AnyConvexProvenance; export type AnyConfectProvenance = Base; export type AnyConvexProvenance = RegisteredFunction.Any; export type WithName = Handler, R>; export {}; //# sourceMappingURL=Handler.d.ts.map