Icard/angular-clarity-master(work.../node_modules/css-vars-ponyfill/dist/css-vars-ponyfill.d.ts

25 lines
1.1 KiB
TypeScript

declare module 'css-vars-ponyfill' {
export interface CSSVarsPonyfillOptions {
rootElement?: Document|HTMLElement;
shadowDOM?: boolean;
include?: string;
exclude?: string;
variables?: {[key: string]: string};
onlyLegacy?: boolean;
preserveStatic?: boolean;
preserveVars?: boolean;
silent?: boolean;
updateDOM?: boolean;
updateURLs?: boolean;
watch?: null|boolean;
onBeforeSend?(xhr: XMLHttpRequest, elm: HTMLLinkElement|HTMLStyleElement, url: string): void;
onError?(message: string, elm: HTMLLinkElement|HTMLStyleElement, xhr: XMLHttpRequest, url: string): void;
onWarning?(message: string): void;
onSuccess?(cssText: string, elm: HTMLLinkElement|HTMLStyleElement, url: string): void;
onComplete?(cssText: string, styleElms: HTMLStyleElement[], cssVariables: {[key: string]: string}, benchmark: number): void;
onFinally?(hasChanged: boolean, hasNativeSupport: boolean, benchmark: number): void;
}
export default function cssVars(options?: CSSVarsPonyfillOptions): void;
}