/** * Shared utilities for reading and editing Unity AnimatorController files. */ export interface AnimatorBlock { file_id: string; class_id: number; type_name: string; raw: string; } /** * Split a multi-document Unity YAML file into typed blocks. * Supports negative 64-bit fileIDs (e.g. &-8508701068132362129). */ export declare function split_yaml_blocks(content: string): AnimatorBlock[]; /** * Extract a YAML field value from a block's raw text. */ export declare function yaml_field(raw: string, field: string): string | null; /** * Extract an inline reference {fileID: X, guid: Y} from a string. * Supports negative fileIDs. */ export declare function parse_inline_ref(str: string): { fileID: string; guid: string; } | null; /** * Find a state block by its m_Name. * Returns the block or null. */ export declare function find_state_by_name(blocks: AnimatorBlock[], name: string): AnimatorBlock | null; /** * Find the state machine block for a given layer. * If layer_name is not specified, returns the first state machine. */ export declare function find_state_machine_for_layer(blocks: AnimatorBlock[], controller_block: AnimatorBlock, layer_name?: string): AnimatorBlock | null; /** * Generate a positive fileID suitable for new Unity YAML blocks. * Uses large positive integers to avoid collisions with existing IDs. */ export declare function generate_file_id(existing_ids: Set): string; /** * Collect all fileIDs (as strings) from the file content. */ export declare function collect_file_ids(content: string): Set; //# sourceMappingURL=animator-utils.d.ts.map