1 | import type { RequestHandler } from "express";
|
2 | import { IAPIFunctionWarning } from "./config";
|
3 | import type { IGatsbyFunction } from "../../redux/types";
|
4 | interface ICreateMiddlewareConfig {
|
5 | getFunctions: () => Array<IGatsbyFunction>;
|
6 | prepareFn?: (functionObj: IGatsbyFunction) => Promise<void> | void;
|
7 | showDebugMessageInResponse?: boolean;
|
8 | }
|
9 | export declare function printConfigWarnings(warnings: Array<IAPIFunctionWarning>, functionObj: IGatsbyFunction): void;
|
10 | export declare function functionMiddlewares(middlewareConfig: ICreateMiddlewareConfig): Array<RequestHandler>;
|
11 | export {};
|