import type { EffectBffRequestHandler } from './module.js'; import { type EffectContext } from './operation-context.js'; type EffectDispatchContextRunner = (context: EffectContext, cb: () => T) => T; export type DispatchEffectBffRequestOptions = { prefix?: string; env?: Record; path?: string; method?: string; runWithEffectContext: EffectDispatchContextRunner; onError?: (error: unknown, context: EffectContext) => Promise | Response; }; export declare function dispatchEffectBffRequestWithContext(handler: EffectBffRequestHandler, request: Request, options: DispatchEffectBffRequestOptions): Promise; export {};