import { Data } from 'effect';
const TaggedEngineMutationError = (Data.TaggedError('EngineMutationError'));
const TaggedEngineRecalcError = (Data.TaggedError('EngineRecalcError'));
const TaggedEngineSnapshotError = (Data.TaggedError('EngineSnapshotError'));
const TaggedEngineSyncError = (Data.TaggedError('EngineSyncError'));
const TaggedEngineHistoryError = (Data.TaggedError('EngineHistoryError'));
const TaggedEnginePivotError = (Data.TaggedError('EnginePivotError'));
const TaggedEngineStructureError = (Data.TaggedError('EngineStructureError'));
const TaggedEngineFormulaBindingError = (Data.TaggedError('EngineFormulaBindingError'));
const TaggedEngineFormulaGraphError = (Data.TaggedError('EngineFormulaGraphError'));
const TaggedEngineFormulaEvaluationError = (Data.TaggedError('EngineFormulaEvaluationError'));
const TaggedEngineCellStateError = (Data.TaggedError('EngineCellStateError'));
const TaggedEngineTraversalError = (Data.TaggedError('EngineTraversalError'));
const TaggedEngineMaintenanceError = (Data.TaggedError('EngineMaintenanceError'));
const TaggedEngineRuntimeScratchError = (Data.TaggedError('EngineRuntimeScratchError'));
export class EngineMutationError extends TaggedEngineMutationError {
}
export class EngineRecalcError extends TaggedEngineRecalcError {
}
export class EngineEvaluationTimeoutError extends Error {
    timeoutMs;
    constructor(timeoutMs) {
        super(`Workbook evaluation timed out after ${timeoutMs}ms`);
        this.timeoutMs = timeoutMs;
        this.name = 'EngineEvaluationTimeoutError';
    }
}
export class EngineSnapshotError extends TaggedEngineSnapshotError {
}
export class EngineSyncError extends TaggedEngineSyncError {
}
export class EngineHistoryError extends TaggedEngineHistoryError {
}
export class EnginePivotError extends TaggedEnginePivotError {
}
export class EngineStructureError extends TaggedEngineStructureError {
}
export class EngineFormulaBindingError extends TaggedEngineFormulaBindingError {
}
export class EngineFormulaGraphError extends TaggedEngineFormulaGraphError {
}
export class EngineFormulaEvaluationError extends TaggedEngineFormulaEvaluationError {
}
export class EngineCellStateError extends TaggedEngineCellStateError {
}
export class EngineTraversalError extends TaggedEngineTraversalError {
}
export class EngineMaintenanceError extends TaggedEngineMaintenanceError {
}
export class EngineRuntimeScratchError extends TaggedEngineRuntimeScratchError {
}
//# sourceMappingURL=errors.js.map