{
  "id": "@typed/template#DocType",
  "canonicalId": "@typed/template#DocType",
  "symbol": {
    "id": "@typed/template#DocType",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "DocType",
    "kind": "class",
    "signatures": [
      "export declare class DocType {\n    readonly _tag = \"doctype\";\n    readonly name: string;\n    readonly publicId: string | undefined;\n    readonly systemId: string | undefined;\n    constructor(name: string, publicType?: string, systemId?: string);\n}"
    ],
    "summary": "Represents a parsed DOCTYPE declaration.",
    "sections": {
      "Why": "Renderer-neutral parsing retains document declaration metadata explicitly.",
      "Ownership and lifetime": "The value owns strings only and has no document lifetime.",
      "Constructor": "Creates a doctype AST node.",
      "Constructor: Why": "Makes declaration tooling explicit.",
      "Constructor: Ownership and lifetime": "Stores strings only.",
      "Property: _tag": "Doctype discriminant.",
      "Property: _tag: Why": "Selects declaration serialization.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata.",
      "Property: name": "Declared document type name.",
      "Property: name: Why": "Preserves author declaration data.",
      "Property: name: Ownership and lifetime": "Retained string metadata.",
      "Property: publicId": "Optional public identifier.",
      "Property: publicId: Why": "Preserves complete doctype metadata.",
      "Property: publicId: Ownership and lifetime": "Retained string metadata.",
      "Property: systemId": "Optional system identifier.",
      "Property: systemId: Why": "Preserves complete doctype metadata.",
      "Property: systemId: Ownership and lifetime": "Retained string metadata."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { DocType } from \"@typed/template/Template\"\n\nconst node = new DocType(\"html\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Template.ts",
      "line": 586
    },
    "since": "1.0.0",
    "category": "Document structure"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#DocType",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "DocType",
    "qualifiedName": "DocType",
    "declarationKey": "declaration:b9480d7afcb03ecefba8e9eb",
    "family": "class",
    "signatures": [
      "export declare class DocType {\n    readonly _tag = \"doctype\";\n    readonly name: string;\n    readonly publicId: string | undefined;\n    readonly systemId: string | undefined;\n    constructor(name: string, publicType?: string, systemId?: string);\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 586,
          "column": 1
        },
        "end": {
          "line": 646,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 582,
          "column": 5
        },
        "end": {
          "line": 582,
          "column": 71
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 597,
          "column": 3
        },
        "end": {
          "line": 597,
          "column": 29
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 608,
          "column": 3
        },
        "end": {
          "line": 608,
          "column": 25
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 619,
          "column": 3
        },
        "end": {
          "line": 619,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 630,
          "column": 3
        },
        "end": {
          "line": 630,
          "column": 41
        }
      }
    ],
    "aliases": [
      "@typed/template/Template#DocType"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:b9480d7afcb03ecefba8e9eb",
    "name": "DocType",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare class DocType {\n    readonly _tag = \"doctype\";\n    readonly name: string;\n    readonly publicId: string | undefined;\n    readonly systemId: string | undefined;\n    constructor(name: string, publicType?: string, systemId?: string);\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 586,
              "column": 1
            },
            "end": {
              "line": 646,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "constructor",
        "syntaxKind": "Constructor",
        "signatures": [
          "constructor(name: string, publicType?: string, systemId?: string);"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/dist/Template.d.ts",
            "start": {
              "line": 582,
              "column": 5
            },
            "end": {
              "line": 582,
              "column": 71
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly _tag = \"doctype\";"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 597,
              "column": 3
            },
            "end": {
              "line": 597,
              "column": 29
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly name: string;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 608,
              "column": 3
            },
            "end": {
              "line": 608,
              "column": 25
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly publicId: string | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 619,
              "column": 3
            },
            "end": {
              "line": 619,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly systemId: string | undefined;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Template.ts",
            "start": {
              "line": 630,
              "column": 3
            },
            "end": {
              "line": 630,
              "column": 41
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare class DocType {\n    readonly _tag = \"doctype\";\n    readonly name: string;\n    readonly publicId: string | undefined;\n    readonly systemId: string | undefined;\n    constructor(name: string, publicType?: string, systemId?: string);\n}"
    ],
    "typeParameters": [],
    "summary": "Represents a parsed DOCTYPE declaration.",
    "sections": {
      "Why": "Renderer-neutral parsing retains document declaration metadata explicitly.",
      "Ownership and lifetime": "The value owns strings only and has no document lifetime.",
      "Constructor": "Creates a doctype AST node.",
      "Constructor: Why": "Makes declaration tooling explicit.",
      "Constructor: Ownership and lifetime": "Stores strings only.",
      "Property: _tag": "Doctype discriminant.",
      "Property: _tag: Why": "Selects declaration serialization.",
      "Property: _tag: Ownership and lifetime": "Immutable metadata.",
      "Property: name": "Declared document type name.",
      "Property: name: Why": "Preserves author declaration data.",
      "Property: name: Ownership and lifetime": "Retained string metadata.",
      "Property: publicId": "Optional public identifier.",
      "Property: publicId: Why": "Preserves complete doctype metadata.",
      "Property: publicId: Ownership and lifetime": "Retained string metadata.",
      "Property: systemId": "Optional system identifier.",
      "Property: systemId: Why": "Preserves complete doctype metadata.",
      "Property: systemId: Ownership and lifetime": "Retained string metadata."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { DocType } from \"@typed/template/Template\"\n\nconst node = new DocType(\"html\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 586,
          "column": 1
        },
        "end": {
          "line": 646,
          "column": 2
        }
      },
      {
        "file": "packages/template/dist/Template.d.ts",
        "start": {
          "line": 582,
          "column": 5
        },
        "end": {
          "line": 582,
          "column": 71
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 597,
          "column": 3
        },
        "end": {
          "line": 597,
          "column": 29
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 608,
          "column": 3
        },
        "end": {
          "line": 608,
          "column": 25
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 619,
          "column": 3
        },
        "end": {
          "line": 619,
          "column": 41
        }
      },
      {
        "file": "packages/template/src/Template.ts",
        "start": {
          "line": 630,
          "column": 3
        },
        "end": {
          "line": 630,
          "column": 41
        }
      }
    ],
    "since": "1.0.0",
    "category": "Document structure"
  }
}
