import type { WorkflowEntrypoint } from 'cloudflare:workers'; import type { CloudflareOptions } from './client'; /** * Hashes a string to a UUID using SHA-1. */ export declare function deterministicTraceIdFromInstanceId(instanceId: string): Promise; /** * Instruments a Cloudflare Workflow class with Sentry. * * @example * ```typescript * const InstrumentedWorkflow = instrumentWorkflowWithSentry( * (env) => ({ dsn: env.SENTRY_DSN }), * MyWorkflowClass * ); * * export default InstrumentedWorkflow; * ``` * * @param optionsCallback - Function that returns Sentry options to initialize Sentry * @param WorkflowClass - The workflow class to instrument * @returns Instrumented workflow class with the same interface */ export declare function instrumentWorkflowWithSentry, // WorkflowEntrypoint type C extends new (ctx: ExecutionContext, env: E) => T>(optionsCallback: (env: E) => CloudflareOptions, WorkFlowClass: C): C; //# sourceMappingURL=workflows.d.ts.map