UNPKG

@libsql/core

Version:

libSQL driver for TypeScript and JavaScript

19 lines (18 loc) 702 B
import type { Config, IntMode } from "./api.js"; import type { Authority } from "./uri.js"; export interface ExpandedConfig { scheme: ExpandedScheme; tls: boolean; authority: Authority | undefined; path: string; authToken: string | undefined; encryptionKey: string | undefined; syncUrl: string | undefined; syncInterval: number | undefined; intMode: IntMode; fetch: Function | undefined; concurrency: number; } export type ExpandedScheme = "wss" | "ws" | "https" | "http" | "file"; export declare function isInMemoryConfig(config: ExpandedConfig): boolean; export declare function expandConfig(config: Readonly<Config>, preferHttp: boolean): ExpandedConfig;