/** * Checks the `url` format, which is stricter than a generic URI. * * Accepts only the `http`, `https` and `ftp` schemes, an optional user and * password, a host that is a public IPv4 address or a dotted domain name with a * top-level label, an optional port of two to five digits and an optional path. * Hosts without a dot, such as `localhost`, private, loopback and link-local * IPv4 addresses, addresses whose last octet is 0 or 255, and IPv6 literals are * rejected. * * @evidence contracts/common.md#principled-implementation The expression is a public-web URL grammar, not the generic URI one: the schemes are limited to http, https and ftp, the host is a public IPv4 address (private, loopback, link-local and last-octet 0 or 255 addresses are excluded) or a dotted domain with a top-level label starting with a letter or a permitted Unicode character and allowing subsequent digits and hyphens, the port has two to five digits and the path has no spaces. The `url` format is a public-web extension alongside the generic `uri` format; its documented grammar rejects hosts without a dot, such as `localhost`, and IPv6 literals. * @evidence contracts/common.md#clear-and-simple-design One predicate and one private pattern, identical to the copy in @typia/utils. * @evidence contracts/common.md#prohibited-implementation-shortcuts The limits are stated and no host is special-cased. * @evidence contracts/common.md#meaningful-documentation The doc lists the accepted schemes and hosts and the rejected local addresses. */ export declare const _isFormatUrl: (str: string) => boolean;