/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { DatasetFindQuery } from "@elaraai/e3-api-client"; /** Which rows a search reads: the dataset's own, or one of a record's indexes. */ interface Selected { /** The index's name, or `null` for the dataset itself. */ readonly index: string | null; } /** * The decoded East {@link SeekQueryType} value as e3's wire query. * * The two are deliberately the same shapes, so this is a re-tagging rather * than a translation: `.east` literals stay text, and the East option on the * `fields` arm, like an open end of a `range`, becomes an absent property * (`exactOptionalPropertyTypes`). * * @param query - The search, a decoded `SeekQueryType` value * @param selector - The rows it searches; the dataset's own when absent * @returns The wire query, naming the index when the rows are an index's * @throws {Error} When a range names neither end */ export declare function toFindQuery(query: unknown, selector?: Selected): DatasetFindQuery; export {}; //# sourceMappingURL=find-query.d.ts.map