import type { SpanAttributes } from '@sentry/core'; import type { ActionFunctionArgs } from 'react-router'; type SpanOptions = { name?: string; attributes?: SpanAttributes; }; /** * Wraps a React Router server action function with Sentry performance monitoring. * * @deprecated Use React Router's instrumentation API instead: export * `instrumentations = [createSentryServerInstrumentation()]` from your `entry.server.tsx` to instrument all server * actions without wrapping them individually. This manual wrapper will be removed in a future major. * * @param options - Optional span configuration options including name, operation, description and attributes * @param actionFn - The server action function to wrap * * @example * ```ts * // Wrap an action function with custom span options * export const action = wrapServerAction( * { * name: 'Submit Form Data', * description: 'Processes form submission data', * }, * async ({ request }) => { * // ... your action logic * } * ); * ``` */ export declare function wrapServerAction(options: SpanOptions | undefined, actionFn: (args: ActionFunctionArgs) => Promise): (args: ActionFunctionArgs) => Promise; export {}; //# sourceMappingURL=wrapServerAction.d.ts.map