/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ export interface JsMacroError { kind: number message: string } export function findAncestorFile(filenames: Array, from: string, root: string): string | null export function findFirstFile(names: Array): 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 packageExports: boolean typescript?: boolean } export interface ResolveOptions { filename: string specifierType: string parent: string packageConditions?: Array } export interface FilePathCreateInvalidation { filePath: string } export interface FileNameCreateInvalidation { fileName: string aboveFilePath: string } export interface GlobCreateInvalidation { glob: string } export interface ResolveResult { resolution: unknown invalidateOnFileChange: Array invalidateOnFileCreate: Array query?: string sideEffects: boolean error: unknown moduleType: number } export interface JsInvalidations { invalidateOnFileChange: Array invalidateOnFileCreate: Array 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 }