//! Shared interface for independently built ztty text extensions.
//!
//! Native implementations are trusted code. They must not retain input/output
//! references after a call. ztty validates the returned length and UTF-8 before
//! committing a result. Change the interface version when changing signatures.
/// The host accepts at most this many UTF-8 input or output bytes per action.
pub const MAX_TEXT_BYTES: usize = 1024 * 1024;
/// Transform a selected string or the currently visible terminal text.