import { Credentials, WchToolsOptions } from './types'; /** * Checks if a username is valid, i.e. either an email or the term 'apikey' * * @param aValue - the value to test * @returns true if the name is valid, else false */ export declare function isValidUserName(aValue: any): aValue is string; /** * Checks if a password is valid * * @param aValue - the value to test * @returns true if the password is valid, else false */ export declare function isValidPassword(aValue: any): aValue is string; /** * Checks if the url is syntactically a valid URL * * @param aValue - the value * @returns true if the value is a valid URL, else false */ export declare function isValidUrl(aValue: any): aValue is string; export declare function isValidEmail(aValue: any): aValue is string; /** * Checks if the URL is a valid WCH API URL by making a test call * * @param aUrl - the URL to test * * @returns true if the URL is valid, else false */ export declare function isValidApiUrl(aValue: any): Promise; /** * Tests if the credentials are valid, this is the case if the object exists, the username is valid * and if the password exists and is not empty * * @param aCred - the credentials object * @param aOptions - debugging options * * @returns true if the credentials are valid, else false */ export declare function isValidCredentials(aCred: any): aCred is Credentials; /** * Validates the credentials by trying to login * * @param aCredentials - the credentials * @returns true if the credentials were correct, else false */ export declare function isValidWchToolsOptions(aCredentials: WchToolsOptions): Promise;