UNPKG

1.2 kBTypeScriptView Raw
1import {
2 Document,
3 Root,
4 Comment,
5 Declaration,
6 Builder,
7 AnyNode,
8 Rule,
9 AtRule,
10 Container
11} from './postcss.js'
12
13export default class Stringifier {
14 builder: Builder
15 constructor(builder: Builder)
16 stringify(node: AnyNode, semicolon?: boolean): void
17 document(node: Document): void
18 root(node: Root): void
19 comment(node: Comment): void
20 decl(node: Declaration, semicolon?: boolean): void
21 rule(node: Rule): void
22 atrule(node: AtRule, semicolon?: boolean): void
23 body(node: Container): void
24 block(node: AnyNode, start: string): void
25 raw(node: AnyNode, own: string | null, detect?: string): string
26 rawSemicolon(root: Root): boolean | undefined
27 rawEmptyBody(root: Root): string | undefined
28 rawIndent(root: Root): string | undefined
29 rawBeforeComment(root: Root, node: Comment): string | undefined
30 rawBeforeDecl(root: Root, node: Declaration): string | undefined
31 rawBeforeRule(root: Root): string | undefined
32 rawBeforeClose(root: Root): string | undefined
33 rawBeforeOpen(root: Root): string | undefined
34 rawColon(root: Root): string | undefined
35 beforeAfter(node: AnyNode, detect: 'before' | 'after'): string
36 rawValue(node: AnyNode, prop: string): string
37}