import { Arbitrary } from './definition/Arbitrary'; /** * Constraints to be applied on {@link webAuthority} * @public */ export interface WebAuthorityConstraints { /** Enable IPv4 in host */ withIPv4?: boolean; /** Enable IPv6 in host */ withIPv6?: boolean; /** Enable extended IPv4 format */ withIPv4Extended?: boolean; /** Enable user information prefix */ withUserInfo?: boolean; /** Enable port suffix */ withPort?: boolean; } /** * For web authority * * According to {@link https://www.ietf.org/rfc/rfc3986.txt | RFC 3986} - `authority = [ userinfo "@" ] host [ ":" port ]` * * @param constraints - Constraints to apply when building instances * * @public */ export declare function webAuthority(constraints?: WebAuthorityConstraints): Arbitrary; /** * For internal segment of an URI (web included) * * According to {@link https://www.ietf.org/rfc/rfc3986.txt | RFC 3986} * * eg.: In the url `https://github.com/dubzzz/fast-check/`, `dubzzz` and `fast-check` are segments * * @public */ export declare function webSegment(): Arbitrary; /** * For query parameters of an URI (web included) * * According to {@link https://www.ietf.org/rfc/rfc3986.txt | RFC 3986} * * eg.: In the url `https://domain/plop/?hello=1&world=2`, `?hello=1&world=2` are query parameters * * @public */ export declare function webQueryParameters(): Arbitrary; /** * For fragments of an URI (web included) * * According to {@link https://www.ietf.org/rfc/rfc3986.txt | RFC 3986} * * eg.: In the url `https://domain/plop?page=1#hello=1&world=2`, `?hello=1&world=2` are query parameters * * @public */ export declare function webFragments(): Arbitrary; /** * Constraints to be applied on {@link webUrl} * @public */ export interface WebUrlConstraints { /** Enforce specific schemes, eg.: http, https */ validSchemes?: string[]; /** Settings for {@link webAuthority} */ authoritySettings?: WebAuthorityConstraints; /** Enable query parameters in the generated url */ withQueryParameters?: boolean; /** Enable fragments in the generated url */ withFragments?: boolean; } /** * For web url * * According to {@link https://www.ietf.org/rfc/rfc3986.txt | RFC 3986} and * {@link https://url.spec.whatwg.org/ | WHATWG URL Standard} * * @param constraints - Constraints to apply when building instances * * @public */ export declare function webUrl(constraints?: WebUrlConstraints): Arbitrary;