declare function _ensureStartingAndTrailingSlash(aUrl?: string): string; declare function _parseURL(aURL: URL | string | null | undefined): URL | null | undefined; declare function _cloneURL(aURL: URL): URL; declare function _buildQueryString(aValue: any): string | null | undefined; export interface ParsedQuery { [key: string]: string | string[]; } declare function _parseQuery(aQuery: string): ParsedQuery; /** * Extracts the base URL from the current document * * @param aDoc the document * @return the URL * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base */ declare function _getBaseUrlFromDocument(aDoc: Document): string | undefined; /** * Extracts the base URL from the window * * @param aDoc the window * @return the URL */ declare function _getBaseUrlFromWindow(aWindow?: Window): string | undefined; declare function _urlToString(aURL: URL | string): string; declare function _getPathForSearch(aPath: string): string; export { _getPathForSearch as pathForSearch, _getBaseUrlFromDocument as getBaseUrlFromDocument, _getBaseUrlFromWindow as getBaseUrlFromWindow, _ensureStartingAndTrailingSlash as urlSlashes, _buildQueryString as queryToString, _parseQuery as parseQueryString, _urlToString as urlToString, _cloneURL as cloneURL, _parseURL as parseURL };