import { type OccurrenceListServiceConfig } from '../../services/occurrence-list-service.js'; import { type Event } from '../../services/event-service.js'; export interface RootProps { /** Child components that will have access to the occurrence list service */ children: React.ReactNode; /** Configuration for the occurrence list service */ occurrenceListServiceConfig: OccurrenceListServiceConfig; } /** * OccurrenceList Root core component that provides occurrence list service context. * * @component */ export declare function Root(props: RootProps): React.ReactNode; export interface RawProps { /** Render prop function */ children: (props: RawRenderProps) => React.ReactNode; } export interface RawRenderProps { /** List of occurrences */ occurrences: Event[]; /** Indicates whether more occurrences are currently being loaded */ isLoadingMore: boolean; /** Indicates whether there are occurrences */ hasOccurrences: boolean; /** Indicates whether there are more occurrences to load */ hasMoreOccurrences: boolean; /** Function to load more occurrences */ loadMoreOccurrences: () => void; } /** * OccurrenceList Raw core component that provides occurrence list data. * * @component */ export declare function Raw(props: RawProps): React.ReactNode; export interface ErrorProps { /** Render prop function */ children: (props: ErrorRenderProps) => React.ReactNode; } export interface ErrorRenderProps { /** Occurrence list error message */ error: string; } /** * OccurrenceList Error core component that provides occurrence list error. Not rendered if there is no error. * * @component */ export declare function Error(props: ErrorProps): React.ReactNode;