wishthis/node_modules/postcss/lib/stringifier.d.ts

47 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-06-08 10:36:39 +00:00
import {
AnyNode,
AtRule,
2023-08-17 09:47:40 +00:00
Builder,
Comment,
Container,
Declaration,
Document,
Root,
Rule
2022-06-08 10:36:39 +00:00
} from './postcss.js'
2023-08-17 09:47:40 +00:00
declare namespace Stringifier {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Stringifier_ as default }
}
declare class Stringifier_ {
2022-06-08 10:36:39 +00:00
builder: Builder
constructor(builder: Builder)
atrule(node: AtRule, semicolon?: boolean): void
2023-08-17 09:47:40 +00:00
beforeAfter(node: AnyNode, detect: 'after' | 'before'): string
2022-06-08 10:36:39 +00:00
block(node: AnyNode, start: string): void
2023-08-17 09:47:40 +00:00
body(node: Container): void
comment(node: Comment): void
decl(node: Declaration, semicolon?: boolean): void
document(node: Document): void
raw(node: AnyNode, own: null | string, detect?: string): string
rawBeforeClose(root: Root): string | undefined
2022-06-08 10:36:39 +00:00
rawBeforeComment(root: Root, node: Comment): string | undefined
rawBeforeDecl(root: Root, node: Declaration): string | undefined
rawBeforeOpen(root: Root): string | undefined
2023-08-17 09:47:40 +00:00
rawBeforeRule(root: Root): string | undefined
2022-06-08 10:36:39 +00:00
rawColon(root: Root): string | undefined
2023-08-17 09:47:40 +00:00
rawEmptyBody(root: Root): string | undefined
rawIndent(root: Root): string | undefined
rawSemicolon(root: Root): boolean | undefined
2022-06-08 10:36:39 +00:00
rawValue(node: AnyNode, prop: string): string
2023-08-17 09:47:40 +00:00
root(node: Root): void
rule(node: Rule): void
stringify(node: AnyNode, semicolon?: boolean): void
2022-06-08 10:36:39 +00:00
}
2023-08-17 09:47:40 +00:00
declare class Stringifier extends Stringifier_ {}
export = Stringifier