import type { FunctionDefinition } from '../../definition_types'; /** * This function calculates the latest occurrence of the search field * (the first parameter), where sorting order is determined by the sort * field (the second parameter). This sorting order is always ascending * and null values always sort last. Both fields support null, * single-valued, and multi-valued input. If the latest sort field * value appears in multiple documents, this function is allowed to * return any corresponding search field value. * * @example * @timestamp | name | number * "2025-11-25T00:00:00.000Z | alpha | 1" * "2025-11-25T00:00:01.000Z | alpha | 2" * "2025-11-25T00:00:02.000Z | bravo | null" * "2025-11-25T00:00:03.000Z | alpha | 4" * "2025-11-25T00:00:04.000Z | bravo | 5" * "2025-11-25T00:00:05.000Z | charlie | [6, 7, 8]" * "2025-11-25T00:00:06.000Z | delta | null" * * From dataset * | STATS last_val = LAST(number, @timestamp) BY name */ declare const definition: FunctionDefinition; export default definition; //# sourceMappingURL=last.d.ts.map