import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event'; import type { SyncBlockEventPayload, RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events'; import { Experience } from '@atlaskit/editor-common/experiences/Experience'; export declare const createExperienceDispatcher: (fireAnalyticsEvent?: ((payload: SyncBlockEventPayload) => void) | ((payload: RendererSyncBlockEventPayload) => void)) => DispatchAnalyticsEvent; /** * This experience tracks when a source sync block is saved to the BE. * * Start: When the flush source sync block function is called. * Success: When the sync block save is successful within the timeout duration of start. * Failure: When the timeout duration passes without the sync block being successfully saved */ export declare const getSaveSourceExperience: (fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void) => Experience; /** * This experience tracks when a reference sync block is saved to the BE. * * Start: When the flush sync block function is called. * Success: When the sync block save is successful within the timeout duration of start. * Failure: When the timeout duration passes without the sync block being successfully saved */ export declare const getSaveReferenceExperience: (fireAnalyticsEvent?: (payload: RendererSyncBlockEventPayload) => void) => Experience; /** * This experience tracks when a reference sync block data is fetched from the BE. * * Start: When the fetchNodesData function is called. * Success: When the fetching the data is successful within the timeout duration of start. * Failure: When the timeout duration passes without the data being successfully fetched, or the fetch fails */ export declare const getFetchExperience: (fireAnalyticsEvent?: (payload: RendererSyncBlockEventPayload) => void) => Experience; /** * This experience tracks when a reference sync block source info data (title, url) is fetched from the BE. * * Start: When the fetchSourceInfo function is called. * Success: When the fetching the data is successful within the timeout duration of start. * Failure: When the timeout duration passes without the data being successfully fetched, or the fetch fails */ export declare const getFetchSourceInfoExperience: (fireAnalyticsEvent?: (payload: RendererSyncBlockEventPayload) => void) => Experience; /** * This experience tracks when a source sync block is deleted from the BE. * * Start: When the delete source sync block function is called. * Success: When the sync block deletion is successful within the timeout duration of start. * Failure: When the timeout duration passes without the sync block being successfully deleted, or the deletion fails */ export declare const getDeleteSourceExperience: (fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void) => Experience; /** * This experience tracks when a source sync block is created and registered to the BE. * * Start: When the create source sync block function is called. * Success: When the sync block creation is successful within the timeout duration of start. * Failure: When the timeout duration passes without the sync block being successfully created, or the creation fails */ export declare const getCreateSourceExperience: (fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void) => Experience; /** * This experience tracks when references for a sync block are fetched from the BE. * * Start: When the fetchReferences function is called. * Success: When the fetching of references is successful within the timeout duration of start. * Failure: When the timeout duration passes without references being successfully fetched, or the fetch fails */ export declare const getFetchReferencesExperience: (fireAnalyticsEvent?: (payload: SyncBlockEventPayload) => void) => Experience;