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