/**
 * MJ's built-in multi-tenancy middleware.
 *
 * Registers with key 'mj:tenantFilter' so that downstream layers (e.g., BCSaaS)
 * can replace it by registering with the same key at higher ClassFactory priority.
 *
 * Conditionally enabled via configInfo.multiTenancy?.enabled.
 */
import { BaseServerMiddleware } from './BaseServerMiddleware.js';
import type { RequestHandler } from 'express';
import type { RunViewParams, UserInfo, BaseEntity } from '@memberjunction/core';
export declare class MJTenantFilterMiddleware extends BaseServerMiddleware {
    get Label(): string;
    /**
     * Only active when multiTenancy is enabled in config.
     */
    get Enabled(): boolean;
    GetPostAuthMiddleware(): RequestHandler[];
    PreRunView(params: RunViewParams, contextUser: UserInfo | undefined): RunViewParams | Promise<RunViewParams>;
    PreSave(entity: BaseEntity, contextUser: UserInfo | undefined): boolean | string | Promise<boolean | string>;
}
//# sourceMappingURL=MJTenantFilterMiddleware.d.ts.map