This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The undo point selector function will be called during layout undo processing to determine up to (and including) which command should the undo be done. Commands are sorted in the list in reversed chronological order - last command processed command is at index 0, command before that at index 1 etc.
The function must return index of command up to (and including) which the undo should be done. It is not possible to undo just some command randomly.
export declare type UndoPointSelector = (undoableCommands: ReadonlyArray<DashboardLayoutCommands>) => number;