1
- /* tslint:disable */
1
+ /* auto-generated by NAPI-RS */
2
2
/* eslint-disable */
3
+ /** Inline CSS styles from <style> tags to matching elements in the HTML tree and return a string. */
4
+ export declare function inline ( html : string , options ?: Options | undefined | null ) : string
3
5
4
- /* auto-generated by NAPI-RS */
6
+ /** Inline CSS styles into an HTML fragment. */
7
+ export declare function inlineFragment ( html : string , css : string , options ?: Options | undefined | null ) : string
5
8
6
- export interface StylesheetCache {
7
- /** Cache size. */
8
- size : number
9
- }
10
9
export interface Options {
11
10
/**
12
11
* Whether to inline CSS from "style" tags.
@@ -19,6 +18,8 @@ export interface Options {
19
18
keepStyleTags ?: boolean
20
19
/** Keep "link" tags after inlining. */
21
20
keepLinkTags ?: boolean
21
+ /** Keep "at-rules" after inlining. */
22
+ keepAtRules ?: boolean
22
23
/** Used for loading external stylesheets via relative URLs. */
23
24
baseUrl ?: string
24
25
/** Whether remote stylesheets should be loaded or not. */
@@ -33,9 +34,11 @@ export interface Options {
33
34
*/
34
35
preallocateNodeCapacity ?: number
35
36
}
36
- /** Inline CSS styles from <style> tags to matching elements in the HTML tree and return a string. */
37
- export declare function inline ( html : string , options ?: Options | undefined | null ) : string
38
- /** Inline CSS styles into an HTML fragment. */
39
- export declare function inlineFragment ( html : string , css : string , options ?: Options | undefined | null ) : string
37
+
38
+ export interface StylesheetCache {
39
+ /** Cache size. */
40
+ size : number
41
+ }
42
+
40
43
/** Get the package version. */
41
44
export declare function version ( ) : string
0 commit comments