import { Parser, shape } from "./index"; /** * Create a custom type guard * @param test A function that will determine runtime if the value matches * @param testName A name for that function, useful when it fails */ export declare function guard(test: (value: A) => value is B, testName?: string): Parser; export declare const any: Parser; export declare const unknown: Parser; export declare const number: Parser; export declare const isNill: Parser; export declare const natural: Parser; export declare const isFunction: Parser; export declare const boolean: Parser; export declare const object: typeof shape & Parser; export declare const isArray: Parser; export declare const string: Parser; export declare const instanceOf: (classCreator: { new (...args: any[]): C; }) => Parser; export declare const regex: (tester: RegExp) => Parser;