export type ParsedUrl = { /** Scheme from the allowed set found at the head of the text, lowercased. */ scheme: string | null; /** The text with a recognized `scheme://` removed. */ rest: string; /** The text carries a scheme outside the allowed set — nothing may be prepended to it. */ foreign: boolean; }; export declare const parseUrl: (raw: string, schemes: string[]) => ParsedUrl; export declare const composeUrl: (rest: string, scheme: string) => string;