UNPKG

@libsql/core

Version:

libSQL driver for TypeScript and JavaScript

31 lines (30 loc) 765 B
/// <reference types="node" /> export interface Uri { scheme: string; authority: Authority | undefined; path: string; query: Query | undefined; fragment: string | undefined; } export interface HierPart { authority: Authority | undefined; path: string; } export interface Authority { host: string; port: number | undefined; userinfo: Userinfo | undefined; } export interface Userinfo { username: string; password: string | undefined; } export interface Query { pairs: Array<KeyValue>; } export interface KeyValue { key: string; value: string; } export declare function parseUri(text: string): Uri; export declare function encodeBaseUrl(scheme: string, authority: Authority | undefined, path: string): URL;