/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { DatasetFindQuery, DatasetKeySearch } from "@elaraai/e3-api-client"; import type { TreePath } from "@elaraai/e3-types"; import type { PagedSelector, PagedRun } from "./api.js"; /** The selector a bind with no index has. */ export declare const NO_INDEX: PagedSelector; /** A selector's contribution to a channel key and a cache key. */ export declare function selectorKey(selector: PagedSelector): string; /** Tracked-channel key for a dataset's revision. Every read of the dataset * tracks it, so every read re-fires when the source moves. */ export declare function pagedRevisionKey(workspace: string, path: TreePath): string; /** The family a window belongs to: its dataset, the rows it serves and its * revision — every window one landed window can answer for (#1217). */ export declare function pagedWindowFamily(workspace: string, path: TreePath, revision: string, selector: PagedSelector): string; /** Tracked-channel key for one window of one revision. */ export declare function pagedWindowKey(workspace: string, path: TreePath, revision: string, offset: number, limit: number, selector?: PagedSelector): string; /** Tracked-channel key for one revision's element total. */ export declare function pagedTotalKey(workspace: string, path: TreePath, revision: string, selector?: PagedSelector): string; /** Tracked-channel key for ONE key query against one revision. Every distinct * query gets its own channel: a search result is as fixed as a window. */ export declare function pagedSeekKey(workspace: string, path: TreePath, revision: string, query: DatasetFindQuery, selector?: PagedSelector): string; /** A search's channel key, from the family of the rows it searches and its text. */ export declare function seekKeyIn(family: string, text: string): string; /** A key query's form and literals, as a channel's key names it. */ export declare function seekQueryText(query: DatasetFindQuery): string; /** * Tracked-channel key for one batch of reads of one revision (#1351): several * key searches, the rows of several keys — or of those another record's runs * name (#1393) — or the entries of several runs, each batch named by a digest * of what it asks, never by its text: a batch of ten thousand searches is a * key as short as one of two. * * @param workspace - The workspace * @param path - The dataset's path * @param revision - The revision the batch reads * @param selector - The rows it reads * @param kind - What it reads * @param parts - What it asks, each in its channel text * @returns The key */ export declare function pagedBatchKey(workspace: string, path: TreePath, revision: string, selector: PagedSelector, kind: "seekAll" | "rows" | "joins" | "runs" | "place" | "within", parts: readonly string[]): string; /** The family of a narrowing's membership answers (#1349): the runs of one * of a record's indexes, at one revision, named by their digest. */ export declare function withinFamily(workspace: string, path: TreePath, revision: string, selector: PagedSelector, runs: readonly PagedRun[]): string; /** A key query as a batch's wire takes it: its form alone, the index and the * pin being the batch's. */ export declare function searchOf(query: DatasetFindQuery): DatasetKeySearch; //# sourceMappingURL=keys.d.ts.map