type TypeofMap = { string: string; number: number; boolean: boolean; }; /** * Check if a value is an array where every element matches the given check. * * @param v - The value to check. * @param typeOf - A `typeof` string tag (e.g. `"string"`, `"number"`) or a type guard function. * @param allowEmpty - When `false`, empty arrays return `false`. Defaults to false. * @returns A typeguard narrowing `v` to the appropriate array type. */ export declare function isArrayOf(v: unknown, typeOf: K, allowEmpty?: boolean): v is TypeofMap[K][]; export declare function isArrayOf(v: unknown, elementTypeguard: (e: unknown) => e is T, allowEmpty?: boolean): v is T[]; /** * By default, JS regexes don't allow the common (?) style regexp that * other implementations do. Rather than having to split this out into separate flags * or add other config, we'll just move those flags out and pass them with a simple convention. * * For example, case insensitive regex: (?i)hElLo * * Supported flags: * - `i` — ignoreCase: case-insensitive matching * - `m` — multiline: `^` and `$` match start/end of each line, not just the string * - `s` — dotAll: `.` matches newline characters as well */ export declare function createRegexpWithFlags(pattern: string): RegExp; /** Check if a value is a non-null, non-array object. */ export declare function isRecord(value: unknown): value is Record; /** * Check if a value is a plain `Record`: * non-null object, not an array, plain prototype (Object.prototype or null), * and every own value is a string. */ export declare function isStringRecord(val: unknown): val is Record; export {}; //# sourceMappingURL=checks.d.ts.map