import { AttributeNode, ElementDeclarationNode, ListExpressionNode, SyntaxNode } from '../types/nodes'; import { ArchSettingValue, ArchSettings } from '../types/schemaJson'; export type ArchSort = 'node' | 'group' | 'link' | 'metadata' | 'project'; export declare const declarationWord: (node: ElementDeclarationNode) => string | undefined; export declare function isTopLevel(node: SyntaxNode): node is ElementDeclarationNode; export declare function archSort(node: SyntaxNode): ArchSort | undefined; export declare const isTopLevelNote: (node: SyntaxNode) => boolean; export declare function topLevelDeclaration(node: SyntaxNode): ElementDeclarationNode | undefined; export declare function getArchNodeName(node?: SyntaxNode): string | undefined; export declare const handleOf: (node: ElementDeclarationNode) => string | undefined; export declare function roleWord(text: string | undefined): string | undefined; export declare function roleOf(node: ElementDeclarationNode): string | undefined; export interface ArchNodeRef { node: SyntaxNode; role?: string; roleNode?: SyntaxNode; braceLine?: boolean; } export declare function getArchNodeRef(words: SyntaxNode[]): ArchNodeRef | undefined; export declare function getArchNodeNumber(node?: SyntaxNode): number | null; export declare function valueOf(node: SyntaxNode): ArchSettingValue | undefined; export declare const isArchInlineLinkKey: (key: string) => boolean; export declare function extractArchNodeSettings(list?: ListExpressionNode): ArchSettings; export declare function getArchNodeBody(node: ElementDeclarationNode): SyntaxNode[]; export interface ArchField { callee: SyntaxNode | undefined; args: SyntaxNode[]; settings: ListExpressionNode | undefined; } export declare function getArchNodeField(node: SyntaxNode | undefined): ArchField | undefined; export interface ArchInfix { left: SyntaxNode; op: string; right: SyntaxNode; } export declare function getArchNodeInfix(node?: SyntaxNode): ArchInfix | undefined; export declare const ARCH_LINK_OPS: Set; export interface ArchLinkParts { row: ArchField | undefined; op: string; from: ArchNodeRef | undefined; to: ArchNodeRef | undefined; } export declare function getArchLinkParts(declaration: ElementDeclarationNode): ArchLinkParts | undefined; export declare function isArchInlineLink(attribute: AttributeNode): boolean; export declare function getArchInlineLinks(declaration: ElementDeclarationNode): AttributeNode[]; export interface ArchInlineLink extends ArchNodeRef { op: string; } export declare function getArchInlineLink(attribute: AttributeNode): ArchInlineLink | undefined; export interface ArchMembers { refs: ArchNodeRef[]; bad: SyntaxNode[]; } export declare function getArchMembers(group: ElementDeclarationNode): ArchMembers; export declare function getArchRefs(declaration: ElementDeclarationNode): ArchNodeRef[]; export interface ArchProperty { key: string; value: ArchSettingValue | undefined; } export declare function getArchProperty(node: SyntaxNode): ArchProperty | undefined; export declare function getArchNoteDeclaration(declaration: ElementDeclarationNode): ElementDeclarationNode | undefined; export declare function getArchNoteText(note: ElementDeclarationNode): string; export declare const IMAGE_URL: RegExp; export interface ArchPropertyEntry { key: string; value: SyntaxNode | undefined; node: SyntaxNode; inBody: boolean; } export interface ArchPropertyRead { entries: ArchPropertyEntry[]; bad: ElementDeclarationNode[]; } export declare function getArchProperties(declaration: ElementDeclarationNode, bareWordIsAFlag: boolean): ArchPropertyRead;