import { IActivity } from '../models/Activity'; /** * Apps that integrate with an application should register for this to create an activity/notes when the event is received. * * See [[saveActivity]] * @param callback This function should create or update an activity in the application. * If the id of the given activity is defined then this function should update the existing activity, * else this should create a new activity. */ export declare function registerSaveActivity(callback: (activity: IActivity) => Promise): Promise; /** * Apps that create interactions should use this to save, or update, information about the interaction * (notes, disposition, etc...) on the application/crm. * * If the id of the activity is defined then the existing activity will be updated, otherwise a new activity will be created. * * See [[registerSaveActivity]] * @param activity * @returns Id of the created or updated activity */ export declare function saveActivity(activity: IActivity): Promise;