import * as ffi from 'ffi-napi'; import 'reflect-metadata'; import { FFITypeList, ITargetConstructor } from './common'; export declare type WrapMethod = (native: { [method: string]: ffi.ForeignFunction; }, args: any[]) => any; /** Method wrapping descriptors */ export interface IMethodDescriptors { /** * node-ffi mappings */ mappings: { [method: string]: FFITypeList; }; /** * Wrapping functions */ proxyMethods: Map; } /** * Gets descriptors for the current object instance */ export declare function getMethodDescriptors(target: ITargetConstructor, instance: T): IMethodDescriptors;