declare const isValid: (regex: string, str: string) => boolean; declare const getMatches: (regex: string, str: string, { flags, depth }?: { flags?: string | undefined; depth?: number | undefined; }) => string[]; export { isValid, getMatches };