interface URLProps { host: string; port: number; protocol?: string; pathPrefix?: string; params?: string; } /** * Builds a query string from a record. * @param record - The record to build the query string from. If the record is null, * an empty string is returned. * @returns the query string. */ export declare const buildQueryString: (request: Record, prefix?: string) => string; /** * URL is a simple class for building and extending URLs. */ export declare class URL { protocol: string; host: string; port: number; path: string; /** * @param host - The hostname or IP address of the server. * @param port - The port number of the server. * @param protocol - The protocol to use for all requests. Defaults to "". * @param pathPrefix - A path prefix to use for all requests. Defaults to "". */ constructor({ host, port, protocol, pathPrefix }: URLProps); /** * Replaces creates a new URL with the specified properties replaced. * @param props - The properties to replace. * @returns a new URL. */ replace(props: Partial): URL; /** * Creates a new url with the given path appended to the current path. * @param path - the path to append to the URL. * @returns a new URL. */ child(path: string): URL; /** @returns a string representation of the url */ toString(): string; static readonly UNKNOWN: URL; } export {}; //# sourceMappingURL=url.d.ts.map