import type { TensorOpts, Type } from "./api.js";
import { Tensor2 } from "./tensor.js";
/**
 * Creates a square identity matrix of given `size` and options.
 *
 * @param type
 * @param size
 * @param opts
 */
export declare const identity: <T extends Exclude<Type, "str">>(type: T, size: number, opts?: Pick<TensorOpts<any, any>, "storage">) => Tensor2<number>;
//# sourceMappingURL=identity.d.ts.map