1 | import { NodeCallback, V1Network } from './v2/types';
|
2 | export { Environments } from './v2/environments';
|
3 | /**
|
4 | * Set the global Bitcoin network. Used for v1 only.
|
5 | *
|
6 | * @deprecated
|
7 | */
|
8 | export declare function setNetwork(network: V1Network): void;
|
9 | /**
|
10 | * Get the global Bitcoin network. Used for v1 only.
|
11 | *
|
12 | * @deprecated
|
13 | */
|
14 | export declare function getNetwork(): V1Network;
|
15 | /**
|
16 | * Helper function to validate the input parameters to an SDK method.
|
17 | * Only validates for strings - if parameter is different, check that manually
|
18 | *
|
19 | * @deprecated
|
20 | * @param params dictionary of parameter key-value pairs
|
21 | * @param expectedParams list of expected string parameters
|
22 | * @param optionalParams list of optional string parameters
|
23 | * @param optionalCallback if callback provided, must be a function
|
24 | * @returns true if validated, throws with reason otherwise
|
25 | */
|
26 | export declare function validateParams(params: object, expectedParams: string[], optionalParams?: string[], optionalCallback?: NodeCallback<any>): boolean;
|
27 | //# sourceMappingURL=common.d.ts.map |
\ | No newline at end of file |