export default segmentsToRows;
export type Segment = {
    from: number;
    to: number;
};
/** @typedef {{ from:number, to: number }} Segment */
/**
 * Partition a list of segments into an array of rows containing the segments.
 *
 * WARNING: Sorts the `segments` array input _inplace_.
 *
 * @param {Array<Segment>} segments An array of segments (e.g. [{from: 10, to: 20}, {from: 18, to: 30}])
 * @return: {Array<Array<Segment>>} non-overlapping rows of segments
 */
declare function segmentsToRows(segments: Array<Segment>): Segment[][];
