export interface INamespaceFilter { matches(namespace: string): boolean; } /** * Builds a namespace matcher from the patterns requested by the client. * * A namespace matches when at least one positive pattern matches it and no negative pattern does. * * `minimatch` has its own native `!` negation which *inverts* the result rather than reporting a * match, so `!cms.os.*` would return `true` for every namespace that does not match it. Patterns are * therefore split into positive and negative lists here and matched positively, with `nonegate` set * as a second guard. */ export declare const createNamespaceFilter: (patterns: string[]) => INamespaceFilter; /** * Parses the `x-webiny-debug` header into a namespace pattern list. * * Returns an empty array when capture was not requested. Never throws - a malformed header must not * be able to fail the request it arrived on. */ export declare const parseNamespaceHeader: (value: string | string[] | undefined) => string[];