animate/webGl/my-threejs-test/node_modules/@parcel/rust/index.d.ts

80 lines
2.4 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export interface JsMacroError {
kind: number
message: string
}
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
export function findFirstFile(names: Array<string>): string | null
export function findNodeModule(module: string, from: string): string | null
export function hashString(s: string): string
export function hashBuffer(buf: Buffer): string
export function optimizeImage(kind: string, buf: Buffer): Buffer
export interface JsFileSystemOptions {
canonicalize: (...args: any[]) => any
read: (...args: any[]) => any
isFile: (...args: any[]) => any
isDir: (...args: any[]) => any
includeNodeModules?: NapiSideEffectsVariants
}
export interface FileSystem {
fs?: JsFileSystemOptions
includeNodeModules?: NapiSideEffectsVariants
conditions?: number
moduleDirResolver?: (...args: any[]) => any
mode: number
entries?: number
extensions?: Array<string>
packageExports: boolean
typescript?: boolean
}
export interface ResolveOptions {
filename: string
specifierType: string
parent: string
packageConditions?: Array<string>
}
export interface FilePathCreateInvalidation {
filePath: string
}
export interface FileNameCreateInvalidation {
fileName: string
aboveFilePath: string
}
export interface GlobCreateInvalidation {
glob: string
}
export interface ResolveResult {
resolution: unknown
invalidateOnFileChange: Array<string>
invalidateOnFileCreate: Array<FilePathCreateInvalidation | FileNameCreateInvalidation | GlobCreateInvalidation>
query?: string
sideEffects: boolean
error: unknown
moduleType: number
}
export interface JsInvalidations {
invalidateOnFileChange: Array<string>
invalidateOnFileCreate: Array<FilePathCreateInvalidation | FileNameCreateInvalidation | GlobCreateInvalidation>
invalidateOnStartup: boolean
}
export function transform(opts: object): unknown
export function transformAsync(opts: object): object
export class Hash {
constructor()
writeString(s: string): void
writeBuffer(buf: Buffer): void
finish(): string
}
export class Resolver {
constructor(projectRoot: string, options: FileSystem)
resolve(options: ResolveOptions): ResolveResult
resolveAsync(): object
resolveAsync(options: ResolveOptions): object
getInvalidations(path: string): JsInvalidations
getInvalidations(path: string): JsInvalidations
}