Module Ecaml.Mode_line

module Format : sig ... end
val text : Format.t -> Text.t

(describe-function 'format-mode-line) Sadly, in test, which runs Emacs batch mode, text always returns the empty string.