react-native-node-api
Version:
Node-API for React Native
26 lines • 772 B
TypeScript
import { type NodeApiVersion } from "node-api-headers";
/**
* Generates source code for a version script for the given Node API version.
* @param version
*/
export declare function getNodeApiHeaderAST(version: NodeApiVersion): {
kind: "TranslationUnitDecl";
inner: {
kind: string;
type?: {
qualType: string;
} | undefined;
name?: string | undefined;
}[];
};
export type FunctionDecl = {
name: string;
kind: "engine" | "runtime";
returnType: string;
noReturn: boolean;
argumentTypes: string[];
libraryPath: string;
fallbackReturnStatement: string;
};
export declare function getNodeApiFunctions(version?: NodeApiVersion): FunctionDecl[];
//# sourceMappingURL=node-api-functions.d.ts.map