import type { FastifyRequest } from 'fastify'; import type { Manifold } from '../../core/pipework.js'; import type { AuthStrategy, AuthRequest } from '../../auth/auth/types.js'; import type { AuthEnricher, TenantResolver } from '../../auth/auth/chain.js'; import type { AuthRequirement } from '../di/types.js'; import type { TenantConfig } from '../../auth/tenant/types.js'; import type { LoggingConfig } from '../../core/logging/types.js'; import { type Flow } from '../context/index.js'; export declare function buildAuthRequest(req: FastifyRequest): AuthRequest; export interface ContextOptions { instance: Manifold; strategies: AuthStrategy[]; enrichers: AuthEnricher[]; tenantResolver: TenantResolver | undefined; tenantConfig: TenantConfig | null; authOptional: boolean; logging: LoggingConfig | null; } export declare function buildContext(req: FastifyRequest, options: ContextOptions, authRequirement?: AuthRequirement): Promise; //# sourceMappingURL=middleware.d.ts.map