import { Model } from 'bookshelf'; import { Nullable } from './internal/types'; /** * Transforms (usually database) object to pure JSON object using toJSON member function. * If it does not have toJSON or object does not exist, it returns object itself. * @param model Object to transform to JSON * @param options Object that is passed to toJSON method * @returns toJSON result */ declare const toJson: (model: Nullable>, options?: object) => any; export default toJson;