import { IDocNodeParameters , DocNode } from '@microsoft/tsdoc' ; import { CustomDocNodeKind } from './CustomDocNodeKind' ; /**
 * Constructor parameters for  DocHeading .
  export interface IDocHeadingParameters extends IDocNodeParameters { title : string ; level ? : number ; } /**
 * Represents a section header similar to an HTML `<h1>` or `<h2>` element.
 */ export class DocHeading extends DocNode { public readonly title : string ; public readonly level : number ; /**
     * Don't call this directly.  Instead use  TSDocParser internal public constructor ( parameters ) { super ( parameters ) ; this . title = parameters . title ; this . level = parameters . level !== undefined ? parameters . level : 1 ; if ( this . level < 1 || this . level > 5 ) { throw new Error ( 'IDocHeadingParameters.level must be a number between 1 and 5' ) ; } } @override  public get kind ( ) : string { return CustomDocNodeKind . Heading ; } }