import { Filter } from './Filter'; /** * FilterChain - Manages execution of filters in priority order. * Similar to Java servlet filter chains. * * Filters are sorted by priority (highest first) and each filter * calls nextFilter.invoke() to invoke the next filter in the chain. * * The final "filter" in the chain is the controller method itself. */ export declare class FilterChain { private filters; constructor(filters: Filter[]); /** * Execute the filter chain. * * @param meta - Request metadata * @param finalHandler - The controller method to execute at the end * @returns Promise of the response */ execute(meta: REQ, finalHandler: () => Promise): Promise; /** * Get all filters in the chain (sorted by priority). */ getFilters(): Filter[]; /** * Get the number of filters in the chain. */ size(): number; }