1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import Container from './container.js'
- import Node, { NodeProps } from './node.js'
-
- declare namespace Comment {
- export interface CommentRaws extends Record<string, unknown> {
-
-
- before?: string
-
-
-
- left?: string
-
-
-
- right?: string
- }
-
- export interface CommentProps extends NodeProps {
-
- raws?: CommentRaws
-
- text: string
- }
-
-
- export { Comment_ as default }
- }
-
-
- declare class Comment_ extends Node {
- parent: Container | undefined
- raws: Comment.CommentRaws
- type: 'comment'
- constructor(defaults?: Comment.CommentProps)
-
- assign(overrides: Comment.CommentProps | object): this
-
- clone(overrides?: Partial<Comment.CommentProps>): this
- cloneAfter(overrides?: Partial<Comment.CommentProps>): this
- cloneBefore(overrides?: Partial<Comment.CommentProps>): this
- /**
- * The comment's text.
- */
- get text(): string
- set text(value: string)
- }
-
- declare class Comment extends Comment_ {}
-
- export = Comment
|