"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class SassContext {
    constructor(sassContextPtr, cwrapCtx, strMethod) {
        this.sassContextPtr = sassContextPtr;
        this.cwrapCtx = cwrapCtx;
        this.strMethod = strMethod;
    }
    get errorStatus() {
        return this.cwrapCtx.context_get_error_status(this.sassContextPtr);
    }
    get errorMessage() {
        const messagePtr = this.cwrapCtx.context_get_error_message(this.sassContextPtr);
        return this.strMethod.ptrToString(messagePtr);
    }
    get outputString() {
        const outputPtr = this.cwrapCtx.context_get_output_string(this.sassContextPtr);
        return this.strMethod.ptrToString(outputPtr);
    }
    get sourceMapString() {
        const sourceMapPtr = this.cwrapCtx.context_get_source_map_string(this.sassContextPtr);
        return this.strMethod.ptrToString(sourceMapPtr);
    }
}
exports.SassContext = SassContext;
//# sourceMappingURL=sassContext.js.map