import { type OrgAuth } from "../auth/sf-auth.ts"; /** * Opt-in row count fetch. Runs `SELECT COUNT() FROM ` per object. * * AI-boundary note: `COUNT()` returns a single integer — aggregate metadata, * not record data. No field values, no record identifiers. Results are safe * to surface in output that AI may observe. * * Errors on any single object are swallowed (the object may be non-queryable * for this user) and absent from the returned map. The caller renders "—" or * similar for missing counts. */ export type FetchCountsOptions = { auth: OrgAuth; objects: string[]; fetchFn?: typeof fetch; }; export declare function fetchRowCounts(opts: FetchCountsOptions): Promise>;