export interface ExtResource { id: string | number; type: string; path: string; [key: string]: string | number; } export interface SubResource { id: string; type: string; [key: string]: string | number | boolean | unknown; } export interface NodeProperty { name: string; type: string; value: unknown; } export interface ParsedNode { name: string; type: string; parent: string; instance?: string | number; instance_of?: string; properties: NodeProperty[]; children: ParsedNode[]; } export interface Connection { signal: string; from: string; to: string; method: string; /** v0.30 C 批:连接可选属性(原样字符串)。flags 常见 4=DEFERRED/8=PERSIST; * binds=[...] 为绑定参数数组。此前头部正则只匹配引号值,这三个键被静默丢弃。 */ flags?: string; binds?: string; unbinds?: string; } export interface ParsedScene { header: { format?: number; load_steps?: number; uid?: string; [key: string]: string | number | undefined; }; extResources: ExtResource[]; subResources: SubResource[]; nodes: ParsedNode[]; connections: Connection[]; nodeMap: Map; } export declare function parseTscn(content: string): ParsedScene; export declare function parseTscnSummary(content: string): string;