///
/* eslint-disable @typescript-eslint/no-explicit-any */
declare interface Uint8Array {
dataStart: usize;
}
declare interface Array {
dataStart: usize;
}
declare function decode(buffer: K, name?: string): T;
declare function encode(
item: T,
name?: string,
encoder?: any
): K;
declare interface Object {
encode(): Uint8Array;
decode(bytes: K): T;
toJSON(): string;
serialize(): Uint8Array;
}
declare function isNull(t: T): bool;
/**
* Decorator used to make classes serializable.
*/
declare function nearBindgen(_class: any): void;
declare function defaultValue(): T;
/**
* Throw if attached deposit.
*/
declare function notPayable(): void;
/**
* Throw if attached deposit does not equal 1 yoctoNEAR..
*/
declare function oneYocto(): void;
/**
* Produces a warning during transform that element is deprecated.
*/
declare function deprecated(_any: any): void;
/**
* Inject data from a file as a StaticArray of bytes.
*/
declare function includeBytes(path: string): StaticArray;
/**
* Rename Wasm module export to any string including keywords.
*/
declare function exportAs(_func: any, name: string): void;
/**
* Declare that a singleton method should commit updates
* to the state of the singleton contract so that changes persist.
*/
declare function mutateState(): (target: any,
propertyKey: string,
descriptor: any) => void;
/**
*
* Asserts that a contract method is private, e.i.
* Context.contractName == Context.predecessor
*/
declare function contractPrivate(): (target: any,
propertyKey: string,
descriptor: any) => void;