/** * The next enabled index walking `dir` (+1 / -1) from `from`, wrapping around. * * - `from` may be -1 (nothing active yet): the walk anchors just off the leading * edge, so the first probe is index 0 for `dir` +1 and the last index for -1. * - Returns `from` when it is a valid index but every *other* item is disabled * (nowhere to move — the caller's `next !== from` guard makes it a no-op). * - Returns -1 when there is no enabled item at all (or `length` is 0). */ export declare function nextEnabledIndex(length: number, from: number, dir: 1 | -1, isDisabled: (index: number) => boolean): number; /** * The first enabled index scanning from an edge: `dir` +1 from the start (Home), * -1 from the end (End). Returns -1 when every item is disabled. */ export declare function edgeEnabledIndex(length: number, dir: 1 | -1, isDisabled: (index: number) => boolean): number;