export type LabelType = 'text' | 'markdown'; export type ActorType = 'normal' | 'hollow' | 'awesome' | 'icon'; export type UseCaseShape = 'ellipse' | 'rect'; export type BoundaryType = 'rect' | 'package'; export type RelationshipType = 'association' | 'include' | 'extend' | 'generalization'; export type Animation = 'fast' | 'slow'; export type Direction = 'TB' | 'TD' | 'BT' | 'RL' | 'LR'; export type SymbolKind = 'actor' | 'usecase' | 'boundary' | 'json' | 'edge'; export type Span = [start: number, end: number]; export interface Actor { id: string; label: string; labelType: LabelType; type: ActorType; icon?: string; business: boolean; stereotype?: string; parentId?: string; classes: string[]; styles: string[]; } export interface UseCase { id: string; label: string; labelType: LabelType; shape: UseCaseShape; business: boolean; stereotype?: string; parentId?: string; classes: string[]; styles: string[]; } export interface SystemBoundary { id: string; label: string; labelType: LabelType; type: BoundaryType; members: string[]; classes: string[]; styles: string[]; } export declare const enum Arrow { SOLID_ARROW = 0, BACK_ARROW = 1, LINE_SOLID = 2, CIRCLE_ARROW = 3, CROSS_ARROW = 4, CIRCLE_ARROW_REVERSED = 5, CROSS_ARROW_REVERSED = 6 } export interface Relationship { id: string; explicitId: boolean; source: string; target: string; type: RelationshipType; arrowType: number; label?: string; labelType?: LabelType; minlen: number; classes: string[]; styles: string[]; animate: boolean; animation?: Animation; } export interface UsecaseNote { id: string; target: string; label: string; labelType: LabelType; } export interface UsecaseJsonNode { id: string; value: Record; propertyOrder: Map; classes: string[]; styles: string[]; } export interface ClassDef { id: string; styles: string[]; } export interface MetadataOccurrence { key: string; span: Span; keySpan: Span; valueSpan: Span; } export interface NodeOccurrence { id: string; span: Span; idSpan: Span; labelSpan?: Span; defines?: boolean; stereotypeSpan?: Span; metadata?: MetadataOccurrence[]; classSpans?: Span[]; } export interface EdgeOccurrence { id: string; span: Span; labelSpan?: Span; idSpan?: Span; metadata?: MetadataOccurrence[]; } export interface GraphStatement { kind: 'node' | 'edge' | 'group' | 'note' | 'json' | 'metadata' | 'edgeMetadata' | 'classDef' | 'classAssign' | 'style' | 'direction' | 'accTitle' | 'accDescr' | 'comment' | 'blank'; span: Span; nodes?: NodeOccurrence[]; edges?: EdgeOccurrence[]; group?: string; idSpan?: Span; titleSpan?: Span; endSpan?: Span; ref?: string; refSpan?: Span; children?: GraphStatement[]; metadata?: MetadataOccurrence[]; classSpans?: Span[]; } export interface UsecaseModel { type: 'usecase'; actors: Map; useCases: Map; systemBoundaries: Map; relationships: Relationship[]; notes: Map; jsonNodes: Map; classDefs: Map; direction: Direction; title?: string; accTitle: string; accDescr: string; accDescription: string; source: string; headerSpan: Span; statements: GraphStatement[]; } export declare function emptyModel(): UsecaseModel;