1 | import { ECPair } from 'bitcoinjs-lib';
|
2 | export declare const BLOCKSTACK_HANDLER = "blockstack";
|
3 | /**
|
4 | * Time
|
5 | * @private
|
6 | */
|
7 | export declare function nextYear(): Date;
|
8 | export declare function nextMonth(): Date;
|
9 | export declare function nextHour(): Date;
|
10 | /**
|
11 | * Query Strings
|
12 | * @private
|
13 | */
|
14 | export declare function updateQueryStringParameter(uri: string, key: string, value: string): string;
|
15 | /**
|
16 | * Versioning
|
17 | * @param {string} v1 - the left half of the version inequality
|
18 | * @param {string} v2 - right half of the version inequality
|
19 | * @returns {bool} iff v1 >= v2
|
20 | * @private
|
21 | */
|
22 | export declare function isLaterVersion(v1: string, v2: string): boolean;
|
23 | export declare function hexStringToECPair(skHex: string): ECPair;
|
24 | export declare function ecPairToHexString(secretKey: ECPair): string;
|
25 | export declare function ecPairToAddress(keyPair: ECPair): string;
|
26 | /**
|
27 | * UUIDs
|
28 | * @private
|
29 | */
|
30 | export declare function makeUUID4(): string;
|
31 | /**
|
32 | * Checks if both urls pass the same origin check & are absolute
|
33 | * @param {[type]} uri1 first uri to check
|
34 | * @param {[type]} uri2 second uri to check
|
35 | * @return {Boolean} true if they pass the same origin check
|
36 | * @private
|
37 | */
|
38 | export declare function isSameOriginAbsoluteUrl(uri1: string, uri2: string): boolean;
|
39 | /**
|
40 | * Runtime check for the existence of the global `window` object and the
|
41 | * given API key (name) on `window`. Throws an error if either are not
|
42 | * available in the current environment.
|
43 | * @param fnDesc The function name to include in the thrown error and log.
|
44 | * @param name The name of the key on the `window` object to check for.
|
45 | * @hidden
|
46 | */
|
47 | export declare function checkWindowAPI(fnDesc: string, name: string): void;
|