-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.d.ts
More file actions
12 lines (10 loc) · 584 Bytes
/
index.d.ts
File metadata and controls
12 lines (10 loc) · 584 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
import resolve, { Cache, ProtocolInput, ResolveOptions, ResolveURLOptions, LightURL } from './resolve'
import createCacheSQLite from './cache-sqlite'
declare const hyperdns: Omit<typeof resolve, 'resolve' | 'resolveProtocol' | 'resolveURL'> & {
cache: Cache
createCacheSQLite: typeof createCacheSQLite
resolve (input: string, opts: ResolveOptions): Promise<string | null>
resolveProtocol (protocol: ProtocolInput, input: string, opts: ResolveOptions): Promise<string | null>
resolveURL (input: string, opts: ResolveURLOptions): Promise<typeof LightURL>
}
export = hyperdns