import { Pointer } from "ref-napi";
import { dlopen, RainwayError } from "./rainway-ffi";
/**
 * The opened librainway library.
 * @internal
 */
export declare const native: ReturnType<typeof dlopen>;
/**
 * A Rainway FFI compatible null pointer
 * @internal
 */
export declare const NULL_POINTER: Pointer<void>;
/**
 * A RainwayVoid FFI compatible VOID value
 * @internal
 */
export declare const VOID = 0;
/**
 * Invokes a Rainway function, throwing an error if it errors.
 * @internal
 * @param name - the name of the function
 * @param cb - the invocation
 */
export declare function invokeOrError(name: keyof ReturnType<typeof dlopen>, cb: () => RainwayError): void;
