export type { QueryResult } from '../connection-facade.js'; /** * Options for chunked query processing. * * @template T The type of records being queried */ export type ChunkOptions = { /** * Number of records per chunk. * Defaults to 2000. */ chunkSize?: number; /** * Callback invoked for each chunk of records. * Can be async for processing operations. * * @param records - The records in this chunk * @param chunkIndex - Zero-based index of this chunk */ onChunk?: (records: T[], chunkIndex: number) => void | Promise; /** * Maximum total records to retrieve. * If not specified, retrieves all matching records. */ maxRecords?: number; }; /** * Default chunk size for queryChunked operations. * * The value of 2000 is chosen to balance: * - Memory efficiency: Small enough to process without excessive memory use * - Performance: Large enough to minimize callback overhead * - Salesforce alignment: Within typical Salesforce API batch limits * * Override via `chunkSize` option in queryChunked() for different use cases. */ export declare const DEFAULT_CHUNK_SIZE = 2000;