ccc-tnt-psd2ui/npm-packages/mac-v3.4.+/postcss/lib/stringifier.d.ts

47 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-07-24 03:13:08 +00:00
import {
AnyNode,
AtRule,
2023-09-06 01:51:55 +00:00
Builder,
Comment,
Container,
Declaration,
Document,
Root,
Rule
2023-07-24 03:13:08 +00:00
} from './postcss.js'
2023-09-06 01:51:55 +00:00
declare namespace Stringifier {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Stringifier_ as default }
}
declare class Stringifier_ {
2023-07-24 03:13:08 +00:00
builder: Builder
constructor(builder: Builder)
atrule(node: AtRule, semicolon?: boolean): void
2023-09-06 01:51:55 +00:00
beforeAfter(node: AnyNode, detect: 'after' | 'before'): string
2023-07-24 03:13:08 +00:00
block(node: AnyNode, start: string): void
2023-09-06 01:51:55 +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
2023-07-24 03:13:08 +00:00
rawBeforeComment(root: Root, node: Comment): string | undefined
rawBeforeDecl(root: Root, node: Declaration): string | undefined
rawBeforeOpen(root: Root): string | undefined
2023-09-06 01:51:55 +00:00
rawBeforeRule(root: Root): string | undefined
2023-07-24 03:13:08 +00:00
rawColon(root: Root): string | undefined
2023-09-06 01:51:55 +00:00
rawEmptyBody(root: Root): string | undefined
rawIndent(root: Root): string | undefined
rawSemicolon(root: Root): boolean | undefined
2023-07-24 03:13:08 +00:00
rawValue(node: AnyNode, prop: string): string
2023-09-06 01:51:55 +00:00
root(node: Root): void
rule(node: Rule): void
stringify(node: AnyNode, semicolon?: boolean): void
2023-07-24 03:13:08 +00:00
}
2023-09-06 01:51:55 +00:00
declare class Stringifier extends Stringifier_ {}
export = Stringifier