UNPKG

826 BTypeScriptView Raw
1import type { MarkupData } from 'parse5';
2import type Spec from './Spec';
3export declare function warnEmdFailure(report: Spec['warn'], node: Element | Text, e: SyntaxError & {
4 line?: number;
5 column?: number;
6}): void;
7export declare function wrapEmdFailure(src: string): string;
8export declare function offsetToLineAndColumn(string: string, offset: number): {
9 line: number;
10 column: number;
11};
12export declare function attrLocation(source: string | undefined, loc: MarkupData.ElementLocation, attr: string): {
13 line: number;
14 column: number;
15};
16export declare function attrValueLocation(source: string | undefined, loc: MarkupData.ElementLocation, attr: string): {
17 line: number;
18 column: number;
19};
20export declare function validateEffects(spec: Spec, effectsRaw: string[], node: Element): string[];