import type { Contract } from 'autumndb'; import type { JellyfishSDK } from '.'; /** * @namespace JellyfishSDK.event * @memberof JellyfishSDK */ export declare class EventSdk { private sdk; constructor(sdk: JellyfishSDK); /** * @summary Create a new event * @name create * @public * @function * @memberof JellyfishSDK.event * * @description Send an action request to create a new event * * @param {Object} event - The card that should be created, must include * a 'type' attribute. * * @fulfil {Event} - The newly created event * @returns {Promise} * * @example * sdk.event.create({ * card: '1234-5687', * data: { * description: 'lorem ipsum dolor sit amet' * } * }) * .then((id) => { * console.log(id) * }) */ create({ target, ...rest }: { target: Contract; [key: string]: any; }): Promise; }