UNPKG

caniemail

Version:

HTML and CSS Feature Support for Email Clients from caniemail.com

23 lines 1.06 kB
import { type CssStylesheetAST } from '@adobe/css-tools'; import type { Document } from 'domhandler'; import { type EmailClient } from './clients.js'; import { type FeatureIssue, type FeatureMap } from './features.js'; export interface IssueGroup { issue: FeatureIssue; clients: EmailClient[]; } interface ParseHtmlResult { document: Document; stylesheets: CssStylesheetAST[]; } export declare function fromTitleEntries<T>(entries: Array<{ title: string; value: T; } | undefined>): Record<string, T>; export declare const getTitleMatches: (pairs: Record<string, any>, targetValue: string | string[], comparer?: (value: any, targetValue: string | string[]) => boolean) => string[]; export declare const groupIssues: (issues: FeatureMap<FeatureIssue>) => IssueGroup[]; export declare const parseCss: (cssContent: string) => CssStylesheetAST; export declare const parseHtml: (html: string) => ParseHtmlResult; export declare const sortIssues: (groupedIssues: IssueGroup[]) => IssueGroup[]; export {}; //# sourceMappingURL=helpers.d.ts.map