declare global { interface Array { /** * The first element of the array. * * @example * ```typescript * const arr = [1, 2, 3]; * arr.first; // => 1 * ``` */ first: any[] extends this ? T | undefined : T; } interface ReadonlyArray { /** * The first element of the array. * * @example * ```typescript * const arr = [1, 2, 3]; * arr.first; // => 1 * ``` */ first: T | undefined; } } export {}; //# sourceMappingURL=first.d.ts.map