import type { AttributeValue, ScreenyDocument, ScreenyElement, ScreenyNode } from "./ast.js"; export declare function parseDocument(path: string, text: string): ScreenyDocument; export declare function textContent(nodes: ScreenyNode[]): string; export declare function attr(element: ScreenyElement, name: string): AttributeValue | undefined; export declare function stringAttr(element: ScreenyElement, name: string): string | undefined; export declare function identifierAttr(element: ScreenyElement, name: string): string | undefined; export declare function elements(nodes: ScreenyNode[]): ScreenyElement[]; /** Compute 1-based line/column from a char offset (for rendering diagnostics). */ export declare function lineColumn(text: string, offset: number): { line: number; column: number; }; //# sourceMappingURL=parser.d.ts.map