/** * Rebuild a node's links order as * `[import echange links, middle, recycling links, export echange links]`. * * The "middle" group (links that are neither echange import/export nor recycling) * is spatially re-sorted with `compare`. When `release_locks` is false, every * link whose anchor on the node is locked (the "cadenas" of the "Ordre des flux * E/S" menu) keeps its slot in the middle group and only the UNLOCKED links are * re-sorted into the remaining slots — so a manual node drag no longer undoes a * user-locked arrangement (issue #197). When true, the whole middle group is * re-sorted (the explicit "recalcul automatique" the lock tooltip refers to). * * Generic over the link type so the test can use lightweight stand-ins. */ export declare function reorganizeIOOrder(links_order: T[], import_links: T[], export_links: T[], recycling_links: T[], is_locked: (link: T) => boolean, compare: (link_a: T, link_b: T) => number, release_locks: boolean): T[];