import { Maybe } from "../util/maybe.js"; import { URL } from "../util/url.js"; export type Query = { Scheme: string; Location: string; Version: string; toString(): string; }; export declare namespace Query { const toString: (q: Query) => string; const toURL: (q: Query) => URL; } /** * Parses a query in the format [proto://]host/path[#major][@version]. * Omitted protocol specifiers are parsed as [git://] schemes. */ export declare function ParseQuery(query: string, configPath?: string): Maybe; /** Checks if a query belongs to any registered registry. If it exists, returns its checksum * @param query Query string * @returns Maybe selector string */ export declare function BelongsToRegistry(query: string, configPath?: string): Maybe;