1- /* tslint:disable */
1+ /* auto-generated by NAPI-RS */
22/* 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
35
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
58
6- export interface StylesheetCache {
7- /** Cache size. */
8- size : number
9- }
109export interface Options {
1110 /**
1211 * Whether to inline CSS from "style" tags.
@@ -19,6 +18,8 @@ export interface Options {
1918 keepStyleTags ?: boolean
2019 /** Keep "link" tags after inlining. */
2120 keepLinkTags ?: boolean
21+ /** Keep "at-rules" after inlining. */
22+ keepAtRules ?: boolean
2223 /** Used for loading external stylesheets via relative URLs. */
2324 baseUrl ?: string
2425 /** Whether remote stylesheets should be loaded or not. */
@@ -33,9 +34,11 @@ export interface Options {
3334 */
3435 preallocateNodeCapacity ?: number
3536}
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+
4043/** Get the package version. */
4144export declare function version ( ) : string
0 commit comments