declare type Matcher = (value: T) => boolean; declare type Pattern = string | RegExp; declare type AllowRejectOptions = Partial<{ accept: Pattern | Pattern[]; reject: Pattern | Pattern[]; }>; declare type AllowlistOptions = AllowRejectOptions | Pattern | Pattern[] | Matcher; declare function allowList(options: AllowlistOptions, ignorecase?: boolean): Matcher; export { AllowRejectOptions, AllowlistOptions, Matcher, Pattern, allowList };