import { Uuid, RecordsResult } from '../core/index.js'; declare const STORE_RECORD_SEARCH_MIN_CHARS = 2; /** One record the search door found. */ interface RecordSearchHit { recordId: Uuid; tableId: Uuid; tableName: string; /** The record's title-field value; null when the record has none yet. */ name: string | null; organizationId: Uuid; updatedAt: string; } interface RecordSearchRequest { search?: string; limit?: number; offset?: number; /** Only these tables (a visible filter the person chose). */ tableIds?: readonly Uuid[]; /** Only these organizations (a visible filter the person chose; never the active one by default). */ organizationIds?: readonly Uuid[]; } /** Records across every table the person can see whose name matches `search`. */ declare function searchRecords(dataSource: unknown, request?: RecordSearchRequest): Promise>; /** * Candidates for the `record` entity token in a record picker ("Link a record…"). Two tables often * hold a record of the same name ("UnitedHealthcare" in two choice lists), so each candidate says * which table it is in; the same words label the link. */ declare function listStoreRecordCandidates(dataSource: unknown, args: { search?: string; limit?: number; }): Promise<{ ok: true; data: { id: string; title: string; }[]; } | { ok: false; error: string; }>; export { STORE_RECORD_SEARCH_MIN_CHARS, listStoreRecordCandidates, searchRecords }; export type { RecordSearchHit, RecordSearchRequest };