pub fn global_layout(arguments: &[OsString]) -> GlobalLayoutExpand description
What: Find a command/query/error boundary with one forward scan. Why: Values such as ‘-h’, empty -C paths and non-UTF-8 filenames remain original opaque argument values. Symlink-sensitive -C chaining is not approximated lexically; repository queries forward the complete prefix.
In TS you’d write (pseudocode):
function globalLayout(nativeArgs): { prefixLen: number; outcome: GlobalOutcome };