import { REQUEST_METHOD } from "@gongt/ts-stl-library/request/request-method"; import { RequestHandler, Router } from "express-serve-static-core"; export declare class CrossDomainMiddleware { private methods; private hosts; private credentials; private headers; constructor(); getMiddleware(): RequestHandler; allowCredentials(allow: boolean): this; exposeHeaders(...headers: string[]): this; allowMethods(...methods: REQUEST_METHOD[]): this; allowHosts(...hosts: string[]): this; mount(router: Router, path?: string): this; }