"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const unindent_1 = __importDefault(require("../utils/unindent"));
/**
 * Parse to extract API deprecated
 *
 * @param {string} content - Content to be parsed.
 * @returns {{deprecated: boolean}|{deprecated: {content: string}}}
 */
function parse(content) {
    const deprecated = content.trim();
    if (deprecated.length > 0) {
        return {
            deprecated: {
                content: (0, unindent_1.default)(deprecated),
            },
        };
    }
    return {
        deprecated: true,
    };
}
/**
 * Exports
 */
module.exports = {
    parse: parse,
    path: 'local',
    method: 'insert',
    markdownFields: ['deprecated.content'],
    markdownRemovePTags: ['deprecated.content'],
};
//# sourceMappingURL=api_deprecated.js.map