1 | import type { AbbreviationAttribute, AbbreviationNode } from '@emmetio/abbreviation';
|
2 | import type { Config, Options } from './config.js';
|
3 | export interface OutputStream {
|
4 | options: Options;
|
5 | value: string;
|
6 | level: number;
|
7 | offset: number;
|
8 | line: number;
|
9 | column: number;
|
10 | }
|
11 | export declare const expressionStart = "{";
|
12 | export declare const expressionEnd = "}";
|
13 | export default function createOutputStream(options: Options, level?: number): OutputStream;
|
14 |
|
15 |
|
16 |
|
17 | export declare function push(stream: OutputStream, text: string): void;
|
18 |
|
19 |
|
20 |
|
21 | export declare function pushString(stream: OutputStream, value: string): void;
|
22 |
|
23 |
|
24 |
|
25 | export declare function pushNewline(stream: OutputStream, indent?: boolean | number): void;
|
26 |
|
27 |
|
28 |
|
29 | export declare function pushIndent(stream: OutputStream, size?: number): void;
|
30 |
|
31 |
|
32 |
|
33 | export declare function pushField(stream: OutputStream, index: number, placeholder: string): void;
|
34 |
|
35 |
|
36 |
|
37 | export declare function tagName(name: string, config: Config): string;
|
38 |
|
39 |
|
40 |
|
41 | export declare function attrName(name: string, config: Config): string;
|
42 |
|
43 |
|
44 |
|
45 | export declare function attrQuote(attr: AbbreviationAttribute, config: Config, isOpen?: boolean): string;
|
46 |
|
47 |
|
48 |
|
49 | export declare function isBooleanAttribute(attr: AbbreviationAttribute, config: Config): boolean;
|
50 |
|
51 |
|
52 |
|
53 | export declare function selfClose(config: Config): string;
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | export declare function isInline(node: string | AbbreviationNode, config: Config): boolean;
|
59 |
|
60 |
|
61 |
|
62 | export declare function splitByLines(text: string): string[];
|