"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ByteSliceViewType = exports.UnmanagedVectorPtr = exports.UnmanagedVectorType = void 0;
const ref_struct_di_1 = __importDefault(require("ref-struct-di"));
const ref_napi_1 = __importDefault(require("@eleccookie/ref-napi"));
__exportStar(require("./options"), exports);
__exportStar(require("./bcs"), exports);
__exportStar(require("./ffi"), exports);
__exportStar(require("./type"), exports);
const StructType = (0, ref_struct_di_1.default)(ref_napi_1.default);
exports.UnmanagedVectorType = StructType({
    is_none: ref_napi_1.default.types.bool,
    ptr: ref_napi_1.default.refType(ref_napi_1.default.types.CString),
    len: ref_napi_1.default.types.size_t,
    cap: ref_napi_1.default.types.size_t,
});
exports.UnmanagedVectorPtr = ref_napi_1.default.refType(exports.UnmanagedVectorType);
exports.ByteSliceViewType = StructType({
    is_nil: ref_napi_1.default.types.bool,
    ptr: ref_napi_1.default.refType(ref_napi_1.default.types.CString),
    len: ref_napi_1.default.types.size_t,
});
//# sourceMappingURL=index.js.map