|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
text: string |
|
|
|
|
|
type: 'comment' |
|
|
|
|
|
constructor(defaults?: Comment.CommentProps) |
|
|
assign(overrides: Comment.CommentProps | object): this |
|
|
clone(overrides?: Partial<Comment.CommentProps>): Comment |
|
|
cloneAfter(overrides?: Partial<Comment.CommentProps>): Comment |
|
|
cloneBefore(overrides?: Partial<Comment.CommentProps>): Comment |
|
|
} |
|
|
|
|
|
declare class Comment extends Comment_ {} |
|
|
|
|
|
export = Comment |
|
|
|