xud
Version:
Exchange Union Daemon
12 lines (11 loc) • 825 B
TypeScript
export declare function getDefaultCertPath(): string;
export declare function shorten(key: string, length?: number): string;
export declare function trim(key: string, length?: number): string;
export declare const generateHeaders: (headers: string[]) => string[];
/** Returns a number of coins as an integer number of satoshis. */
export declare const coinsToSats: (coinsQuantity: number) => number;
/** Returns a number of satoshis as a string representation of coins with up to 8 decimal places. */
export declare const satsToCoinsStr: (satsQuantity: number) => string;
/** Waits up to 5 seconds for the tls.cert file to be created in case this is the first time xud has been run. */
export declare const waitForCert: (certPath: string) => Promise<void>;
export declare function showSeed(seedMnemonicList: string[]): void;