import type { Context } from '@midwayjs/koa'; import type { MiddlewareConfig } from '@waiting/shared-types'; /** * Should middleware be enabled for request path. * - if mwConfig.ignore is defined, TRUE if path not matches ignore rules * - if mwConfig.match is defined, TRUE if path matches match rules */ export declare function shouldEnableMiddleware(ctx?: Context, mwConfig?: MiddlewareConfig): boolean;