2021-12-19 21:19:33 +09:00
|
|
|
/* tslint:disable */
|
2021-11-21 19:23:53 +09:00
|
|
|
/* eslint-disable */
|
|
|
|
|
2021-12-19 21:19:33 +09:00
|
|
|
/* auto-generated by NAPI-RS */
|
|
|
|
|
2021-11-21 17:11:15 +09:00
|
|
|
export class ExternalObject<T> {
|
2021-11-21 19:23:53 +09:00
|
|
|
readonly '': {
|
|
|
|
readonly '': unique symbol
|
|
|
|
[K: symbol]: T
|
|
|
|
}
|
2021-11-21 17:11:15 +09:00
|
|
|
}
|
2021-11-29 13:54:45 +09:00
|
|
|
/** This is a const */
|
2021-11-10 20:04:36 +09:00
|
|
|
export const DEFAULT_COST: number
|
2021-09-23 02:29:09 +09:00
|
|
|
export function getWords(): Array<string>
|
2021-11-29 13:54:45 +09:00
|
|
|
/** Gets some numbers */
|
2021-09-23 02:29:09 +09:00
|
|
|
export function getNums(): Array<number>
|
|
|
|
export function sumNums(nums: Array<number>): number
|
2022-01-18 14:29:47 +09:00
|
|
|
export function toJsObj(): object
|
2022-08-11 23:47:13 +09:00
|
|
|
export function getNumArr(): number[]
|
|
|
|
export function getNestedNumArr(): number[][][]
|
2021-10-30 01:05:05 +09:00
|
|
|
export function readFileAsync(path: string): Promise<Buffer>
|
2021-11-06 23:19:42 +09:00
|
|
|
export function asyncMultiTwo(arg: number): Promise<number>
|
2022-01-06 23:33:34 +09:00
|
|
|
export function bigintAdd(a: bigint, b: bigint): bigint
|
|
|
|
export function createBigInt(): bigint
|
|
|
|
export function createBigIntI64(): bigint
|
2022-02-04 17:03:32 +09:00
|
|
|
export function bigintGetU64AsString(bi: bigint): string
|
2021-09-23 02:29:09 +09:00
|
|
|
export function getCwd(callback: (arg0: string) => void): void
|
2022-01-21 07:39:22 +09:00
|
|
|
export function optionEnd(callback: (arg0: string, arg1?: string | undefined | null) => void): void
|
|
|
|
export function optionStart(callback: (arg0: string | undefined | null, arg1: string) => void): void
|
|
|
|
export function optionStartEnd(callback: (arg0: string | undefined | null, arg1: string, arg2?: string | undefined | null) => void): void
|
|
|
|
export function optionOnly(callback: (arg0?: string | undefined | null) => void): void
|
2021-11-29 13:54:45 +09:00
|
|
|
/** napi = { version = 2, features = ["serde-json"] } */
|
2021-11-16 14:02:40 +09:00
|
|
|
export function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void
|
2022-01-23 19:17:00 +09:00
|
|
|
export function returnJsFunction(): (...args: any[]) => any
|
2022-04-14 01:02:06 +09:00
|
|
|
export function callbackReturnPromise<T>(functionInput: () => T | Promise<T>, callback: (err: Error | null, result: T) => void): T | Promise<T>
|
2022-06-04 02:07:39 +09:00
|
|
|
export interface ObjectFieldClassInstance {
|
|
|
|
bird: Bird
|
|
|
|
}
|
|
|
|
export function createObjectWithClassField(): ObjectFieldClassInstance
|
|
|
|
export function receiveObjectWithClassField(object: ObjectFieldClassInstance): Bird
|
2022-08-17 18:49:22 +09:00
|
|
|
export function plusOne(this: Width): number
|
2022-02-06 21:42:48 +09:00
|
|
|
export function dateToNumber(input: Date): number
|
2022-02-10 04:50:46 +09:00
|
|
|
export function chronoDateToMillis(input: Date): number
|
|
|
|
export function chronoDateAdd1Minute(input: Date): Date
|
2022-02-11 02:52:57 +09:00
|
|
|
export interface Dates {
|
|
|
|
start: Date
|
2022-04-22 17:53:27 +09:00
|
|
|
end?: Date
|
2022-02-11 02:52:57 +09:00
|
|
|
}
|
2021-11-02 01:34:19 +09:00
|
|
|
export function eitherStringOrNumber(input: string | number): number
|
|
|
|
export function returnEither(input: number): string | number
|
|
|
|
export function either3(input: string | number | boolean): number
|
2021-11-29 13:54:45 +09:00
|
|
|
export interface Obj {
|
2021-11-02 01:34:19 +09:00
|
|
|
v: string | number
|
|
|
|
}
|
|
|
|
export function either4(input: string | number | boolean | Obj): number
|
2022-01-06 17:16:43 +09:00
|
|
|
export function receiveClassOrNumber(either: number | JsClassForEither): number
|
|
|
|
export function receiveMutClassOrNumber(either: number | JsClassForEither): number
|
2022-07-05 18:00:45 +09:00
|
|
|
export function receiveDifferentClass(either: JsClassForEither | AnotherClassForEither): number
|
2022-05-12 16:11:47 +09:00
|
|
|
export function returnEitherClass(input: number): number | JsClassForEither
|
|
|
|
export function eitherFromOption(): JsClassForEither | undefined
|
2022-08-07 02:16:28 +09:00
|
|
|
export interface A {
|
|
|
|
foo: number
|
|
|
|
}
|
|
|
|
export interface B {
|
|
|
|
bar: number
|
|
|
|
}
|
|
|
|
export interface C {
|
|
|
|
baz: number
|
|
|
|
}
|
|
|
|
export function eitherFromObjects(input: A | B | C): string
|
2021-11-29 13:54:45 +09:00
|
|
|
/** default enum values are continuos i32s start from 0 */
|
2021-12-09 19:48:50 +09:00
|
|
|
export const enum Kind {
|
2021-11-29 13:54:45 +09:00
|
|
|
/** Barks */
|
|
|
|
Dog = 0,
|
|
|
|
/** Kills birds */
|
|
|
|
Cat = 1,
|
|
|
|
/** Tasty */
|
|
|
|
Duck = 2
|
2022-03-06 20:27:25 +09:00
|
|
|
}
|
|
|
|
export const enum Empty {
|
|
|
|
|
2021-11-29 13:54:45 +09:00
|
|
|
}
|
|
|
|
/** You could break the step and for an new continuous value. */
|
2021-12-09 19:48:50 +09:00
|
|
|
export const enum CustomNumEnum {
|
2021-11-29 13:54:45 +09:00
|
|
|
One = 1,
|
|
|
|
Two = 2,
|
|
|
|
Three = 3,
|
|
|
|
Four = 4,
|
|
|
|
Six = 6,
|
|
|
|
Eight = 8,
|
|
|
|
Nine = 9,
|
|
|
|
Ten = 10
|
|
|
|
}
|
2021-09-23 02:29:09 +09:00
|
|
|
export function enumToI32(e: CustomNumEnum): number
|
2021-09-24 15:45:27 +09:00
|
|
|
export function throwError(): void
|
2022-08-20 00:36:36 +09:00
|
|
|
export function panic(): void
|
2021-11-21 17:11:15 +09:00
|
|
|
export function createExternal(size: number): ExternalObject<number>
|
|
|
|
export function createExternalString(content: string): ExternalObject<string>
|
|
|
|
export function getExternal(external: ExternalObject<number>): number
|
|
|
|
export function mutateExternal(external: ExternalObject<number>, newVal: number): void
|
2022-03-06 00:19:51 +09:00
|
|
|
export function validateArray(arr: Array<number>): number
|
|
|
|
export function validateBuffer(b: Buffer): number
|
|
|
|
export function validateTypedArray(input: Uint8Array): number
|
|
|
|
export function validateBigint(input: bigint): bigint
|
|
|
|
export function validateBoolean(i: boolean): boolean
|
|
|
|
export function validateDate(d: Date): number
|
|
|
|
export function validateDateTime(d: Date): number
|
|
|
|
export function validateExternal(e: ExternalObject<number>): number
|
|
|
|
export function validateFunction(cb: () => number): number
|
|
|
|
export function validateHashMap(input: Record<string, number>): number
|
|
|
|
export function validateNull(i: null): boolean
|
|
|
|
export function validateUndefined(i: undefined): boolean
|
|
|
|
export function validateNumber(i: number): number
|
|
|
|
export function validatePromise(p: Promise<number>): Promise<number>
|
|
|
|
export function validateString(s: string): string
|
|
|
|
export function validateSymbol(s: symbol): boolean
|
2022-07-06 15:01:32 +09:00
|
|
|
export function validateOptional(input1?: string | undefined | null, input2?: boolean | undefined | null): boolean
|
2022-07-05 19:39:12 +09:00
|
|
|
export function returnUndefinedIfInvalid(input: boolean): boolean
|
|
|
|
export function returnUndefinedIfInvalidPromise(input: Promise<boolean>): Promise<boolean>
|
2021-11-26 18:26:14 +09:00
|
|
|
export function tsRename(a: { foo: number }): string[]
|
2022-05-22 14:43:11 +09:00
|
|
|
export function overrideIndividualArgOnFunction(notOverridden: string, f: () => string, notOverridden2: number): string
|
|
|
|
export function overrideIndividualArgOnFunctionWithCbArg(callback: (town: string, name?: string | undefined | null) => string, notOverridden: number): object
|
2022-01-06 23:33:34 +09:00
|
|
|
export function xxh64Alias(input: Buffer): bigint
|
2021-12-19 00:16:09 +09:00
|
|
|
export function getMapping(): Record<string, number>
|
|
|
|
export function sumMapping(nums: Record<string, number>): number
|
2022-04-27 19:19:38 +09:00
|
|
|
export function mapOption(val?: number | undefined | null): number | null
|
2021-12-18 14:36:45 +09:00
|
|
|
export function returnNull(): null
|
|
|
|
export function returnUndefined(): void
|
2021-09-23 02:29:09 +09:00
|
|
|
export function add(a: number, b: number): number
|
|
|
|
export function fibonacci(n: number): number
|
|
|
|
export function listObjKeys(obj: object): Array<string>
|
|
|
|
export function createObj(): object
|
2021-11-15 19:56:06 +09:00
|
|
|
export function getGlobal(): typeof global
|
2021-11-16 00:09:44 +09:00
|
|
|
export function getUndefined(): void
|
2022-04-27 19:19:38 +09:00
|
|
|
export function getNull(): null
|
2021-12-02 16:47:59 +09:00
|
|
|
export interface AllOptionalObject {
|
2022-04-22 17:53:27 +09:00
|
|
|
name?: string
|
|
|
|
age?: number
|
2021-12-02 16:47:59 +09:00
|
|
|
}
|
|
|
|
export function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void
|
2021-12-09 19:48:50 +09:00
|
|
|
export const enum ALIAS {
|
2021-12-02 17:25:20 +09:00
|
|
|
A = 0,
|
|
|
|
B = 1
|
|
|
|
}
|
|
|
|
export interface AliasedStruct {
|
|
|
|
a: ALIAS
|
|
|
|
b: number
|
|
|
|
}
|
|
|
|
export function fnReceivedAliased(s: AliasedStruct, e: ALIAS): void
|
2022-01-06 16:56:14 +09:00
|
|
|
export interface StrictObject {
|
|
|
|
name: string
|
|
|
|
}
|
|
|
|
export function receiveStrictObject(strictObject: StrictObject): void
|
2022-01-12 16:19:05 +09:00
|
|
|
export function getStrFromObject(): void
|
2022-01-23 19:45:41 +09:00
|
|
|
export interface TsTypeChanged {
|
|
|
|
typeOverride: object
|
|
|
|
typeOverrideOptional?: object
|
|
|
|
}
|
2022-02-06 17:25:32 +09:00
|
|
|
export function createObjWithProperty(): { value: ArrayBuffer, get getter(): number }
|
|
|
|
export function getterFromObj(): number
|
2021-11-13 21:51:14 +09:00
|
|
|
export function asyncPlus100(p: Promise<number>): Promise<number>
|
2021-11-29 13:54:45 +09:00
|
|
|
/** This is an interface for package.json */
|
|
|
|
export interface PackageJson {
|
2021-09-28 01:01:19 +09:00
|
|
|
name: string
|
2021-11-29 13:54:45 +09:00
|
|
|
/** The version of the package */
|
2021-09-28 01:01:19 +09:00
|
|
|
version: string
|
2022-04-22 17:53:27 +09:00
|
|
|
dependencies?: Record<string, any>
|
|
|
|
devDependencies?: Record<string, any>
|
2021-09-28 01:01:19 +09:00
|
|
|
}
|
|
|
|
export function readPackageJson(): PackageJson
|
|
|
|
export function getPackageJsonName(packageJson: PackageJson): string
|
2022-02-06 12:58:17 +09:00
|
|
|
export function testSerdeRoundtrip(data: any): any
|
2021-09-23 02:29:09 +09:00
|
|
|
export function contains(source: string, target: string): boolean
|
2021-11-11 17:59:24 +09:00
|
|
|
export function concatStr(s: string): string
|
2021-09-28 01:01:19 +09:00
|
|
|
export function concatUtf16(s: string): string
|
|
|
|
export function concatLatin1(s: string): string
|
2022-02-04 17:29:17 +09:00
|
|
|
export function roundtripStr(s: string): string
|
2021-11-16 00:09:44 +09:00
|
|
|
export function setSymbolInObj(symbol: symbol): object
|
|
|
|
export function createSymbol(): symbol
|
2021-11-02 21:36:34 +09:00
|
|
|
export function withoutAbortController(a: number, b: number): Promise<number>
|
2021-11-16 00:09:44 +09:00
|
|
|
export function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>
|
2021-11-12 18:22:57 +09:00
|
|
|
export function callThreadsafeFunction(callback: (...args: any[]) => any): void
|
|
|
|
export function threadsafeFunctionThrowError(cb: (...args: any[]) => any): void
|
2021-11-21 15:49:04 +09:00
|
|
|
export function threadsafeFunctionFatalMode(cb: (...args: any[]) => any): void
|
2021-12-14 01:37:46 +09:00
|
|
|
export function threadsafeFunctionFatalModeError(cb: (...args: any[]) => any): void
|
2022-08-20 23:40:26 +09:00
|
|
|
export function threadsafeFunctionClosureCapture(func: (...args: any[]) => any): void
|
2022-08-04 01:12:35 +09:00
|
|
|
export function useTokioWithoutAsync(): void
|
2021-10-08 22:13:27 +09:00
|
|
|
export function getBuffer(): Buffer
|
2021-12-18 14:24:16 +09:00
|
|
|
export function appendBuffer(buf: Buffer): Buffer
|
2022-04-23 17:43:36 +09:00
|
|
|
export function getEmptyBuffer(): Buffer
|
2021-11-30 19:43:34 +09:00
|
|
|
export function convertU32Array(input: Uint32Array): Array<number>
|
|
|
|
export function createExternalTypedArray(): Uint32Array
|
|
|
|
export function mutateTypedArray(input: Float32Array): void
|
2022-02-07 13:24:09 +09:00
|
|
|
export function derefUint8Array(a: Uint8Array, b: Uint8ClampedArray): number
|
2022-02-28 02:26:48 +09:00
|
|
|
export function bufferPassThrough(buf: Buffer): Promise<Buffer>
|
2022-07-06 20:08:34 +09:00
|
|
|
export function arrayBufferPassThrough(buf: Uint8Array): Promise<Uint8Array>
|
2022-04-06 22:08:00 +09:00
|
|
|
export function asyncReduceBuffer(buf: Buffer): Promise<number>
|
2021-11-29 13:54:45 +09:00
|
|
|
/**
|
|
|
|
* `constructor` option for `struct` requires all fields to be public,
|
|
|
|
* otherwise tag impl fn as constructor
|
|
|
|
* #[napi(constructor)]
|
|
|
|
*/
|
2021-09-23 02:29:09 +09:00
|
|
|
export class Animal {
|
2021-11-29 13:54:45 +09:00
|
|
|
/** Kind of animal */
|
2021-09-23 02:29:09 +09:00
|
|
|
readonly kind: Kind
|
2021-11-29 13:54:45 +09:00
|
|
|
/** This is the constructor */
|
2021-09-23 02:29:09 +09:00
|
|
|
constructor(kind: Kind, name: string)
|
2021-11-29 13:54:45 +09:00
|
|
|
/** This is a factory method */
|
2021-11-05 19:31:36 +09:00
|
|
|
static withKind(kind: Kind): Animal
|
2021-09-24 14:00:35 +09:00
|
|
|
get name(): string
|
|
|
|
set name(name: string)
|
2022-05-13 13:55:54 +09:00
|
|
|
get type(): Kind
|
|
|
|
set type(kind: Kind)
|
2021-11-29 13:54:45 +09:00
|
|
|
/**
|
|
|
|
* This is a
|
|
|
|
* multi-line comment
|
|
|
|
* with an emoji 🚀
|
|
|
|
*/
|
2021-09-23 02:29:09 +09:00
|
|
|
whoami(): string
|
2021-11-29 13:54:45 +09:00
|
|
|
/** This is static... */
|
2021-09-24 21:19:54 +09:00
|
|
|
static getDogKind(): Kind
|
2022-01-17 13:38:16 +09:00
|
|
|
/**
|
|
|
|
* Here are some characters and character sequences
|
|
|
|
* that should be escaped correctly:
|
|
|
|
* \[]{}/\:""
|
|
|
|
*/
|
2021-12-23 15:07:35 +09:00
|
|
|
returnOtherClass(): Dog
|
2021-12-24 19:46:10 +09:00
|
|
|
returnOtherClassWithCustomConstructor(): Bird
|
2022-05-22 14:43:11 +09:00
|
|
|
overrideIndividualArgOnMethod(normalTy: string, overriddenTy: {n: string}): Bird
|
2021-12-23 15:07:35 +09:00
|
|
|
}
|
|
|
|
export class Dog {
|
|
|
|
name: string
|
|
|
|
constructor(name: string)
|
2021-11-06 12:53:53 +09:00
|
|
|
}
|
2021-12-24 19:46:10 +09:00
|
|
|
export class Bird {
|
|
|
|
name: string
|
|
|
|
constructor(name: string)
|
2021-12-24 23:56:16 +09:00
|
|
|
getCount(): number
|
2021-12-24 19:46:10 +09:00
|
|
|
}
|
2021-12-25 18:35:47 +09:00
|
|
|
export type Blake2bHasher = Blake2BHasher
|
2021-11-29 13:54:45 +09:00
|
|
|
/** Smoking test for type generation */
|
2021-11-06 12:53:53 +09:00
|
|
|
export class Blake2BHasher {
|
2022-04-26 18:53:54 +09:00
|
|
|
static withKey(key: Blake2bKey): Blake2BHasher
|
2022-04-26 18:49:53 +09:00
|
|
|
update(data: Buffer): void
|
2021-11-06 12:53:53 +09:00
|
|
|
}
|
2021-12-25 18:35:47 +09:00
|
|
|
export type Blake2bKey = Blake2BKey
|
2021-11-29 13:54:45 +09:00
|
|
|
export class Blake2BKey { }
|
2021-11-06 22:48:18 +09:00
|
|
|
export class Context {
|
2022-04-22 17:53:27 +09:00
|
|
|
maybeNeed?: boolean
|
2022-07-06 20:08:34 +09:00
|
|
|
buffer: Uint8Array
|
2021-11-06 22:48:18 +09:00
|
|
|
constructor()
|
|
|
|
static withData(data: string): Context
|
2022-07-06 20:08:34 +09:00
|
|
|
static withBuffer(buf: Uint8Array): Context
|
2021-11-06 22:48:18 +09:00
|
|
|
method(): string
|
2021-09-23 02:29:09 +09:00
|
|
|
}
|
2021-12-08 18:32:16 +09:00
|
|
|
export class AnimalWithDefaultConstructor {
|
|
|
|
name: string
|
|
|
|
kind: number
|
|
|
|
constructor(name: string, kind: number)
|
|
|
|
}
|
2021-12-19 21:17:54 +09:00
|
|
|
export class NinjaTurtle {
|
|
|
|
name: string
|
2022-08-17 16:11:32 +09:00
|
|
|
static isInstanceOf(value: unknown): boolean
|
2021-12-19 21:17:54 +09:00
|
|
|
/** Create your ninja turtle! 🐢 */
|
|
|
|
static newRaph(): NinjaTurtle
|
|
|
|
getMaskColor(): string
|
|
|
|
getName(): string
|
2022-07-06 00:09:40 +09:00
|
|
|
returnThis(this: this): this
|
2021-12-19 21:17:54 +09:00
|
|
|
}
|
2021-12-25 18:35:47 +09:00
|
|
|
export type JsAssets = Assets
|
|
|
|
export class Assets {
|
|
|
|
constructor()
|
2022-04-27 19:19:38 +09:00
|
|
|
get(id: number): JsAsset | null
|
2021-12-25 18:35:47 +09:00
|
|
|
}
|
|
|
|
export type JsAsset = Asset
|
|
|
|
export class Asset {
|
|
|
|
constructor()
|
|
|
|
get filePath(): number
|
|
|
|
}
|
2022-01-21 07:39:22 +09:00
|
|
|
export class Optional {
|
|
|
|
static optionEnd(required: string, optional?: string | undefined | null): string
|
|
|
|
static optionStart(optional: string | undefined | null, required: string): string
|
|
|
|
static optionStartEnd(optional1: string | undefined | null, required: string, optional2?: string | undefined | null): string
|
|
|
|
static optionOnly(optional?: string | undefined | null): string
|
|
|
|
}
|
2022-08-06 22:54:58 +09:00
|
|
|
export class NotWritableClass {
|
|
|
|
name: string
|
|
|
|
constructor(name: string)
|
|
|
|
setName(name: string): void
|
|
|
|
}
|
2022-08-17 14:24:40 +09:00
|
|
|
export class CustomFinalize {
|
|
|
|
constructor(width: number, height: number)
|
|
|
|
}
|
2022-08-17 18:49:22 +09:00
|
|
|
export class Width {
|
|
|
|
value: number
|
|
|
|
constructor(value: number)
|
|
|
|
}
|
2021-11-05 19:31:36 +09:00
|
|
|
export class ClassWithFactory {
|
|
|
|
name: string
|
|
|
|
static withName(name: string): ClassWithFactory
|
2021-11-26 00:42:40 +09:00
|
|
|
setName(name: string): this
|
2021-11-05 19:31:36 +09:00
|
|
|
}
|
2022-01-06 17:16:43 +09:00
|
|
|
export class JsClassForEither {
|
|
|
|
constructor()
|
|
|
|
}
|
2022-07-05 18:00:45 +09:00
|
|
|
export class AnotherClassForEither {
|
|
|
|
constructor()
|
|
|
|
}
|
2022-05-06 18:40:46 +09:00
|
|
|
export class Fib {
|
|
|
|
[Symbol.iterator](): Iterator<number, void, number>
|
|
|
|
constructor()
|
|
|
|
}
|
2022-05-10 22:46:16 +09:00
|
|
|
export class Fib2 {
|
|
|
|
[Symbol.iterator](): Iterator<number, void, number>
|
|
|
|
static create(seed: number): Fib2
|
|
|
|
}
|
|
|
|
export class Fib3 {
|
|
|
|
current: number
|
|
|
|
next: number
|
|
|
|
constructor(current: number, next: number)
|
|
|
|
[Symbol.iterator](): Iterator<number, void, number>
|
|
|
|
}
|
2022-03-21 17:36:06 +09:00
|
|
|
export class JsRepo {
|
|
|
|
constructor(dir: string)
|
|
|
|
remote(): JsRemote
|
|
|
|
}
|
|
|
|
export class JsRemote {
|
|
|
|
name(): string
|
|
|
|
}
|
2022-04-26 19:06:52 +09:00
|
|
|
export type CSSRuleList = CssRuleList
|
|
|
|
export class CssRuleList {
|
|
|
|
getRules(): Array<string>
|
2022-05-08 10:48:10 +09:00
|
|
|
get parentStyleSheet(): CSSStyleSheet
|
|
|
|
get name(): string | null
|
2022-04-26 19:06:52 +09:00
|
|
|
}
|
|
|
|
export type CSSStyleSheet = CssStyleSheet
|
|
|
|
export class CssStyleSheet {
|
2022-05-08 10:48:10 +09:00
|
|
|
constructor(name: string, rules: Array<string>)
|
2022-04-26 19:06:52 +09:00
|
|
|
get rules(): CssRuleList
|
2022-05-03 09:27:18 +09:00
|
|
|
anotherCssStyleSheet(): AnotherCssStyleSheet
|
|
|
|
}
|
|
|
|
export type AnotherCSSStyleSheet = AnotherCssStyleSheet
|
|
|
|
export class AnotherCssStyleSheet {
|
|
|
|
get rules(): CssRuleList
|
2022-04-26 19:06:52 +09:00
|
|
|
}
|
2021-11-23 20:00:31 +09:00
|
|
|
export namespace xxh3 {
|
|
|
|
export const ALIGNMENT: number
|
2022-01-06 23:33:34 +09:00
|
|
|
export function xxh3_64(input: Buffer): bigint
|
2021-11-29 13:54:45 +09:00
|
|
|
/** xxh128 function */
|
2022-01-06 23:33:34 +09:00
|
|
|
export function xxh128(input: Buffer): bigint
|
2021-11-29 13:54:45 +09:00
|
|
|
/** Xxh3 class */
|
2021-11-23 20:00:31 +09:00
|
|
|
export class Xxh3 {
|
|
|
|
constructor()
|
2021-11-29 13:54:45 +09:00
|
|
|
/** update */
|
2021-11-23 20:00:31 +09:00
|
|
|
update(input: Buffer): void
|
2022-01-06 23:33:34 +09:00
|
|
|
digest(): bigint
|
2021-11-23 20:00:31 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
export namespace xxh2 {
|
|
|
|
export function xxh2Plus(a: number, b: number): number
|
2022-01-06 23:33:34 +09:00
|
|
|
export function xxh3Xxh64Alias(input: Buffer): bigint
|
2021-11-23 20:00:31 +09:00
|
|
|
}
|