import type { Bundle, FetchFn, SearchParams, WithId } from "./types.js"; /** * Generic FHIR resource reader with search, pagination and type safety. */ export declare class FhirResourceReader { readonly baseUrl: string; readonly resourceType: string; private readonly fetchFn; constructor(baseUrl: string, resourceType: string, fetchFn?: FetchFn); /** Read a single resource by ID. */ read(id: string): Promise>; /** Search with optional parameters. */ search(params?: S): Promise>>; /** Search and return the first result, or undefined. */ searchOne(params?: S): Promise | undefined>; /** Maximum number of pages to follow in searchAll (DoS protection). */ static readonly MAX_PAGES = 1000; /** Search and return all results, following pagination links. */ searchAll(params?: S): Promise[]>; } //# sourceMappingURL=reader.d.ts.map