import { Fetch } from '../utils'; import { Beat, GlobalErrorHandler } from '..'; export declare class BeatApi { fetchInstance: Fetch; constructor(endpoint: string, token: string, onError?: GlobalErrorHandler); getBeats: (pageNum?: number, perPage?: number) => Promise; /** * The transactions widget's one beat fetch: the row pill and the details-drawer card both render * from what it returns, so it asks for the `embedded` envelope (Insights 2.0). A flagged beat * arrives with `is_insights_v2: true` and its `insights_payload` (`pill`, compact slot); a legacy * beat is unchanged. There is deliberately no per-drawer fetch and no pills endpoint. */ getBeatsWithAssociatedTransaction: (fromDate?: string) => Promise; getOffers: () => Promise; updateBeat: (beat: Beat) => Promise; updateOffer: (beat: Beat) => Promise; }