import { assert } from '../utils';
/**
 * A helper function that determines whether a value is a model
 * of the given type.
 */
export const isModel = (model, value) => typeof value === 'object' && value.model === model;
/**
 * A helper function to use in type guards asserting that a value is a model.
 * This currently wraps the `assert` method which is not exposed by the library.
 * In the future, we might replace this with a custom error.
 */
export function assertModel(condition, message) {
    assert(condition, message);
}
//# sourceMappingURL=Model.js.map