export declare const validateRedirectUrl: (url: string, type: "web" | "mobile") => boolean; export declare const validateUriOrigin: (url: string) => boolean; export declare const isValidUrl: (url?: string) => boolean; /** * Check if the given URL is localhost */ export declare const isLocalhost: (url: string) => boolean; /** * Check if the request URL is a file asset path. * The check is based on the last segment of the URL path containing a dot, ignoring query params. * Example: * - `path/scripts.js` -> true * - `path/index.html?query=param` -> true * - `path` -> false * - `path?email=abc@test.com` -> false * @param url Request URL * @returns Boolean value indicating if the request URL is a file asset path */ export declare const isFileAssetPath: (url: string) => boolean; /** * Parse the "range" request header value to get the start, end, and count values. * Example: * - `range: bytes=0-499` -> { start: 0, end: 499, count: 500 } * - `range: bytes=0-` -> { start: 0, end: undefined, count: undefined } * - `range: invalid` -> Error: Range not satisfiable * - Without range header -> { start: undefined, end: undefined, count: undefined } * @param range Range request header value * @returns Object containing start, end, and count values */ export declare const parseRange: (range: string) => { start: number | undefined; end: number | undefined; count: number | undefined; };