import { MessageFunctionType, Result } from '../types'; export interface WhiteErrors { TARGET_ARGUMENT_NOT_A_STRING: MessageFunctionType; } export declare const WHITELIST_ERRORS: WhiteErrors; /** * Remove characters that do not appear * in the whitelist. The characters are * used in a RegExp and so you will need * to escape some chars, e.g. `whitelist(input, '\\[\\]')`. * * @param target The target * @param chars The chars */ export declare function whitelist(target: string, chars: string): Result;