import { onError, onFinish, onStart, onSuccess, MaybeOptionalOptions } from '@orpc/shared'; import { Context, AnySchema, ErrorMap, AnyORPCError, Lazyable, Procedure, ProcedureClientOptions, Schema } from '@orpc/server'; import { P as ProcedureServerFunction } from './shared/next.Bd7DAp0r.mjs'; export { S as ServerFunction, a as ServerFunctionError, b as ServerFunctionORPCErrorJSON, c as ServerFunctionRest, d as ServerFunctionResult, e as createServerFunction } from './shared/next.Bd7DAp0r.mjs'; export { getIssueMessage, parseFormData } from '@orpc/openapi/helpers'; /** * Like `onStart`, but defers execution, useful for updating states. */ declare const onStartDeferred: typeof onStart; /** * Like `onSuccess`, but defers execution, useful for updating states. */ declare const onSuccessDeferred: typeof onSuccess; /** * Like `onError`, but defers execution, useful for updating states. */ declare const onErrorDeferred: typeof onError; /** * Like `onFinish`, but defers execution, useful for updating states. */ declare const onFinishDeferred: typeof onFinish; interface ServerFormFunction { (form: FormData): Promise; } declare function createServerFormFunction(procedure: Lazyable>, ...rest: MaybeOptionalOptions>): ServerFormFunction; interface ServerFormFunctionable { (procedure: Procedure): ServerFormFunction & Procedure; } declare function createServerFormFunctionable(...rest: MaybeOptionalOptions, ErrorMap, any, object>>): ServerFormFunctionable; interface ServerFunctionable { (procedure: Procedure): ProcedureServerFunction & Procedure; } declare function createServerFunctionable(...rest: MaybeOptionalOptions, ErrorMap, any, object>>): ServerFunctionable; export { ProcedureServerFunction, createServerFormFunction, createServerFormFunctionable, createServerFunctionable, onErrorDeferred, onFinishDeferred, onStartDeferred, onSuccessDeferred }; export type { ServerFormFunction, ServerFormFunctionable, ServerFunctionable };