import { Tuple } from './Tuple.js'; import { q as IsNumber, p as IsZero, u as IsDecimal } from './chunks/DZEfmVOc.js'; import './BooleanAnd.js'; import './BooleanOr.js'; import './MaybeReadonly.js'; /** * A 2-dimensional square matrix size `D` of elements of type `U`. * * @template U The type of the elements. * @example Matrix // number[][][] */ type Matrix = IsNumber extends true ? U[][] : IsZero extends true ? [] : IsDecimal extends true ? never : Tuple>; export type { Matrix };