export declare const convertToUrl: (url: string | URL) => URL;
export declare const getURLFilename: (url: URL) => string | undefined;
export declare const IMAGE_EXT: string[];
export declare const VIDEO_EXT: string[];
export declare const STREAM_EXT: string[];
export declare const AUDIO_EXT: string[];
/** Checks if a url is a image URL */
export declare function isImageURL(url: string | URL): boolean;
/** Checks if a url is a video URL */
export declare function isVideoURL(url: string | URL): boolean;
/** Checks if a url is a stream URL */
export declare function isStreamURL(url: string | URL): boolean;
/** Checks if a url is a audio URL */
export declare function isAudioURL(url: string | URL): boolean;
/** Tests if two URLs are the same */
export declare function isSameURL(a: string | URL, b: string | URL): boolean;
/** Adds a protocol to a URL string if its missing one */
export declare function ensureProtocol(url: string, protocol?: string): string;
/** Converts a domain or HTTP URL to a WebSocket URL */
export declare function ensureWebSocketURL<T extends string | URL>(url: T): T;
/** Converts a domain or WS URL to a HTTP URL */
export declare function ensureHttpURL<T extends string | URL>(url: T): T;
/**
 * Normalizes a string into a relay URL
 * Does not remove the trailing slash
 */
export declare function normalizeURL<T extends string | URL>(url: T): T;
