1 | import {
|
---|
2 | AnyNode,
|
---|
3 | AtRule,
|
---|
4 | Builder,
|
---|
5 | Comment,
|
---|
6 | Container,
|
---|
7 | Declaration,
|
---|
8 | Document,
|
---|
9 | Root,
|
---|
10 | Rule
|
---|
11 | } from './postcss.js'
|
---|
12 |
|
---|
13 | declare namespace Stringifier {
|
---|
14 | // eslint-disable-next-line @typescript-eslint/no-use-before-define
|
---|
15 | export { Stringifier_ as default }
|
---|
16 | }
|
---|
17 |
|
---|
18 | declare class Stringifier_ {
|
---|
19 | builder: Builder
|
---|
20 | constructor(builder: Builder)
|
---|
21 | atrule(node: AtRule, semicolon?: boolean): void
|
---|
22 | beforeAfter(node: AnyNode, detect: 'after' | 'before'): string
|
---|
23 | block(node: AnyNode, start: string): void
|
---|
24 | body(node: Container): void
|
---|
25 | comment(node: Comment): void
|
---|
26 | decl(node: Declaration, semicolon?: boolean): void
|
---|
27 | document(node: Document): void
|
---|
28 | raw(node: AnyNode, own: null | string, detect?: string): string
|
---|
29 | rawBeforeClose(root: Root): string | undefined
|
---|
30 | rawBeforeComment(root: Root, node: Comment): string | undefined
|
---|
31 | rawBeforeDecl(root: Root, node: Declaration): string | undefined
|
---|
32 | rawBeforeOpen(root: Root): string | undefined
|
---|
33 | rawBeforeRule(root: Root): string | undefined
|
---|
34 | rawColon(root: Root): string | undefined
|
---|
35 | rawEmptyBody(root: Root): string | undefined
|
---|
36 | rawIndent(root: Root): string | undefined
|
---|
37 | rawSemicolon(root: Root): boolean | undefined
|
---|
38 | rawValue(node: AnyNode, prop: string): string
|
---|
39 | root(node: Root): void
|
---|
40 | rule(node: Rule): void
|
---|
41 | stringify(node: AnyNode, semicolon?: boolean): void
|
---|
42 | }
|
---|
43 |
|
---|
44 | declare class Stringifier extends Stringifier_ {}
|
---|
45 |
|
---|
46 | export = Stringifier
|
---|