export interface ParsedURL { scheme: string; hostname: string; path: string; queryParams: Record; } /** * Parse a URL string into its components. * * Pure JS — works in tests, SSR, and main thread without a native bridge. * * Supports: * - `myapp://host/path?a=1&b=2` → scheme="myapp", hostname="host", path="/path", queryParams={a:"1",b:"2"} * - `https://example.com/foo/bar` → standard http(s) URLs * - `mailto:test@example.com` → scheme="mailto", path="test@example.com" * - `tel:+15551234` → scheme="tel", path="+15551234" * - `myapp:foo` → opaque schemes — path = "foo" * * Always returns lowercased scheme. Fragments are stripped. */ export declare function parse(url: string): ParsedURL; /** * Build a URL string from a path and optional query params. Useful for * generating outgoing deep links (e.g. for a share sheet) with proper * percent-encoding. * * If `path` already has a scheme (`myapp://...`), it's used verbatim before * the query is appended. */ export declare function createURL(path: string, queryParams?: Record): string; //# sourceMappingURL=parse.d.ts.map