export type WPSource = import("./parse-source-string").WPSource; /** * @typedef {import('./parse-source-string').WPSource} WPSource */ /** * Error subtype which indicates that an expected validation error occurred * while reading wp-env configuration. */ export class ValidationError extends Error { } /** * Validates that the value is a string. * * @param {string} configFile The configuration file we're validating. * @param {string} configKey The configuration key we're validating. * @param {number} value The value to check. */ export function checkString(configFile: string, configKey: string, value: number): void; /** * Validates the port and throws if it isn't valid. * * @param {string} configFile The configuration file we're validating. * @param {string} configKey The configuration key we're validating. * @param {number} port The port to check. */ export function checkPort(configFile: string, configKey: string, port: number): void; /** * Validates the array and throws if it isn't valid. * * @param {string} configFile The config file we're validating. * @param {string} configKey The configuration key we're validating. * @param {string[]} array The array that we're checking. */ export function checkStringArray(configFile: string, configKey: string, array: string[]): void; /** * Validates the object and throws if it isn't valid. * * @param {string} configFile The config file we're validating. * @param {string} configKey The configuration key we're validating. * @param {string[]} obj The object that we're checking. * @param {string[]} allowTypes The types that are allowed. * @param {boolean} allowEmpty Indicates whether or not empty values are allowed. */ export function checkObjectWithValues(configFile: string, configKey: string, obj: string[], allowTypes: string[], allowEmpty: boolean): void; /** * Validates the version and throws if it isn't valid. * * @param {string} configFile The config file we're validating. * @param {string} configKey The configuration key we're validating. * @param {string} version The version that we're checking. */ export function checkVersion(configFile: string, configKey: string, version: string): void; /** * Validates the url and throws if it isn't valid. * * @param {string} configFile The config file we're validating. * @param {string} configKey The configuration key we're validating. * @param {string} url The URL that we're checking. */ export function checkValidURL(configFile: string, configKey: string, url: string): void;