UNPKG

@bitgo/utxo-bin

Version:

Command-line utility for BitGo UTXO transactions

40 lines 1.17 kB
type Format = 'hex' | 'base64'; export declare function stringToBuffer(data: string, format: Format | Format[]): Buffer; export declare const readStringOptions: { readonly path: { readonly type: "string"; readonly nargs: 1; readonly default: ""; }; readonly stdin: { readonly type: "boolean"; readonly default: false; }; readonly data: { readonly type: "string"; readonly description: "hex or base64"; readonly alias: "hex"; }; readonly clipboard: { readonly type: "boolean"; readonly default: false; }; }; export type ReadStringOptions = { clipboard?: boolean; path?: string; data?: string; stdin: boolean; }; /** * Reads from stdin until Ctrl-D is pressed. */ export declare function readStdin(): Promise<string>; /** * @param argv * @param input - optional input data. If set, this function just ensures that nothing else is set. * @return string from specified source */ export declare function argToString(argv: ReadStringOptions, input?: string): Promise<string | undefined>; export {}; //# sourceMappingURL=parseString.d.ts.map