export declare type Selection = {
    moving: boolean;
    start: Pos;
    end: Pos;
};
export declare type Pos = {
    row: number;
    col: number;
    num: number;
};
export declare function getBounds(selection: Selection): {
    top: number;
    right: number;
    bottom: number;
    left: number;
};
/**
 * 選択範囲から num のマトリクスを生成する
 * @param selection 選択範囲
 * @returns 画像の表示順を表す数値の二次元配列
 * e.g.
 * [
 *    [0, 1],
 *    [8, 9],
 *    [16, 17]
 * ]
 */
export declare function getMatrix(selection: Selection): number[][];
