import type { Operator } from '@modern-js/bff-core'; import type { NextFunction } from '@modern-js/types'; import type { Request, Response } from 'express'; export type EndFunction = ((func: (res: Response) => void) => void) & ((data: unknown) => void); type MaybeAsync = T | Promise; type PipeFunction = (value: T, end: EndFunction) => MaybeAsync | MaybeAsync; export declare const Pipe: (func: PipeFunction) => Operator; export type Pipe = typeof Pipe; export declare const Middleware: (middleware: (req: Request, res: Response, next: NextFunction) => void) => Operator; export type Middleware = typeof Middleware; export {};