import type { EffectRpcBffDefinition } from './handler/types.js'; /** * Module Federation share through which a backend federation host hands its * package-private handler factory registry to the containers it initializes. */ export declare const EFFECT_BFF_HANDLER_FACTORY_REGISTRY_SHARE = "@modern-js/bff-effect/handler-factory-registry"; /** * @internal Called by generated backend federation containers from `init()`, * before any expose evaluates, so factories created by `defineEffectBff` * register with the host's registry and endpoints read the host's request * storage instead of bundle-local ones. */ export declare function adoptEffectBffShareScope(shareScope: unknown): Promise; type EffectBffEntryModule = { api?: unknown; layer?: unknown; rpc?: EffectRpcBffDefinition; handler?: unknown; createHandler?: unknown; default?: unknown; }; type UnsupportedEffectBffEntryShape = '`handler` export' | 'default request handler'; export type EffectBffEntryShapeFacts = { module: EffectBffEntryModule; unsupportedShape?: UnsupportedEffectBffEntryShape; createHandler?: unknown; createHandlerValidatorAware: boolean; api?: unknown; layer?: unknown; hasRuntimeLayer: boolean; }; type EffectBffEntryShapePredicates = { isRequestHandler: (value: unknown) => boolean; isValidatorAwareHandlerFactory: (value: unknown) => boolean; isHttpApi: (value: unknown) => boolean; }; /** @internal Registers factories created by `defineEffectBff`. */ export declare function registerValidatorAwareHandlerFactory(factory: TFactory): TFactory; /** * True when a custom createHandler factory is produced by defineEffectBff and * therefore forwards strict cross-project validation into createHttpApiHandler. */ export declare function isValidatorAwareHandlerFactory(factory: unknown): boolean; export declare const strictEffectApproachMessage = "[BFF][Effect] strictEffectApproach is enforced: Effect API entries export defineEffectBff(...) or { api, layer } HttpApi module. Raw handler exports, default request handlers, unbranded custom createHandler factories not valid Effect API entries."; export declare function classifyEffectBffEntryModule(value: unknown, predicates: EffectBffEntryShapePredicates): EffectBffEntryShapeFacts | null; export {};