1 | interface Position {
|
2 | start: {
|
3 | line: number;
|
4 | column: number;
|
5 | };
|
6 | end: {
|
7 | line: number;
|
8 | column: number;
|
9 | };
|
10 | source?: string;
|
11 | }
|
12 |
|
13 | export interface Declaration {
|
14 | type: 'declaration';
|
15 | property: string;
|
16 | value: string;
|
17 | position: Position;
|
18 | }
|
19 |
|
20 | export interface Comment {
|
21 | type: 'comment';
|
22 | comment: string;
|
23 | position: Position;
|
24 | }
|
25 |
|
26 | interface Options {
|
27 | source?: string;
|
28 | silent?: boolean;
|
29 | }
|
30 |
|
31 | export default function InlineStyleParser(
|
32 | style: string,
|
33 | options?: Options
|
34 | ): (Declaration | Comment)[];
|