PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@stacks/common/dist
Просмотр файла: utils.d.ts
/// <reference types="node" />
import type { Buffer as NodeJSBuffer } from 'buffer';
declare const AvailableBufferModule: typeof NodeJSBuffer;
export { AvailableBufferModule as Buffer };
export declare const BLOCKSTACK_HANDLER = "blockstack";
export declare function nextYear(): Date;
export declare function nextMonth(): Date;
export declare function nextHour(): Date;
export declare function megabytesToBytes(megabytes: number): number;
export declare function getAesCbcOutputLength(inputByteLength: number): number;
export declare function getBase64OutputLength(inputByteLength: number): number;
export declare function updateQueryStringParameter(uri: string, key: string, value: string): string;
export declare function isLaterVersion(v1: string, v2: string): boolean;
export declare function makeUUID4(): string;
export declare function isSameOriginAbsoluteUrl(uri1: string, uri2: string): boolean;
export declare function getGlobalScope(): Window;
interface GetGlobalObjectOptions {
throwIfUnavailable?: boolean;
usageDesc?: string;
returnEmptyObject?: boolean;
}
export declare function getGlobalObject<K extends Extract<keyof Window, string>>(name: K, { throwIfUnavailable, usageDesc, returnEmptyObject }?: GetGlobalObjectOptions): Window[K] | undefined;
export declare function getGlobalObjects<K extends Extract<keyof Window, string>>(names: K[], { throwIfUnavailable, usageDesc, returnEmptyObject }?: GetGlobalObjectOptions): Pick<Window, K>;
declare type BN = import('bn.js');
export declare type IntegerType = number | string | bigint | Uint8Array | BN;
export declare function intToBytes(value: IntegerType, signed: boolean, byteLength: number): Buffer;
export declare function intToBigInt(value: IntegerType, signed: boolean): bigint;
export declare function with0x(value: string): string;
export declare function hexToBigInt(hex: string): bigint;
export declare function intToHex(integer: IntegerType, lengthBytes?: number): string;
export declare function hexToInt(hex: string): number;
export declare function toBuffer(value: bigint, length?: number): NodeJSBuffer;
export declare function toTwos(value: bigint, width: bigint): bigint;
export declare function fromTwos(value: bigint, width: bigint): bigint;
export declare function bytesToHex(uint8a: Uint8Array): string;
export declare function hexToBytes(hex: string): Uint8Array;
export declare function utf8ToBytes(str: string): Uint8Array;
export declare function toBytes(data: Uint8Array | string): Uint8Array;
export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array;
Выполнить команду
Для локальной разработки. Не используйте в интернете!