import 'reflect-metadata'; import { FlowEntry, type FlowInputOf, type FlowName, type FlowOutputOf, type FlowRecord, type Reference, type ScopeEntry, type ServerRequest, type Token, type Type } from '../common'; import type ProviderRegistry from '../provider/provider.registry'; export declare class FlowInstance extends FlowEntry { readonly deps: Reference[]; readonly globalProviders: ProviderRegistry; private plan; private FlowClass; private stages; private hooks; private readonly logger; constructor(scope: ScopeEntry, record: FlowRecord, deps: Set, globalProviders: ProviderRegistry); protected initialize(): Promise; canActivate(request: ServerRequest): Promise; /** * Express-equivalent HTTP match for runtimes that have NO middleware server * (the Cloudflare Worker / web-fetch handler, where `registerMiddleware` is a * no-op so flows never mount as routes). It mirrors how Express dispatches: * method + `middleware.path` (mounted as a prefix) + `canActivate`. * * Only flows with a SPECIFIC matcher qualify — a `middleware.path` (e.g. * `/oauth/token`) and/or a `canActivate` (static class method or * `middleware.canActivate`, e.g. the well-known PRM path set). A bare * `{ method }` middleware is too broad to safely claim an arbitrary request, * so it returns false. Used by the web-fetch handler to serve auth/well-known/ * oauth endpoints through the real flow pipeline. */ matchHttp(request: ServerRequest): Promise; /** * Get FrontMcpContextStorage from providers (with fallback). * Returns undefined if not available (backward compatibility). */ private getContextStorage; /** * Run flow wrapped in FrontMcpContext. * This ensures ALL stages have access to the context via AsyncLocalStorage. * * @param storage - FrontMcpContextStorage instance * @param request - The HTTP request * @param input - Flow input * @param deps - Flow dependencies * @returns Flow output or undefined */ private runWithContext; run(input: FlowInputOf, deps: Map): Promise | undefined>; } //# sourceMappingURL=flow.instance.d.ts.map