import { StructureNode } from './Option.context'; /** * Find the index of the last visible node in an options dropdown structure. * * Used to determine which group should suppress its trailing divider (the one * that ends up as the last visible thing in the dropdown). * * - For an option node: visible when not filtered out. * - For a group node: visible when at least one of its options is not filtered. * * Pass `filteredOptionsById` when the consumer supports filtering (Autocomplete). * Omit it for non-filtering consumers (Select); options are then treated as * always visible and groups are treated as visible when non-empty. */ export declare function getLastVisibleStructureIndex(structureIds: StructureNode[], optionIdsByGroup: Map, filteredOptionsById?: Record): number;