/**
* Calculates the trace of a square matrix.
* The trace is defined as the sum of the elements on the main diagonal.
*
* @parammatrix - A 2D array representing a square matrix.
* @returns The trace of the matrix.
*/exportdeclarefunctiontrace(matrix: number[][]): number;