import { Metadata } from './metadata'; /** * Cloudevent data. * * This exposes Cloudevent data from {@link Metadata}. Changes made to the * Cloudevent are reflected in the backing metadata, as are changes to the * backing metadata reflected in this Cloudevent. * * @public */ export declare class Cloudevent { /** * The metadata backing this Cloudevent. */ readonly metadata: Metadata; /** * @param metadata - The metadata backing this Cloudevent */ constructor(metadata: Metadata); /** * Get the spec version. */ get specversion(): string | undefined; /** * Get or set the id. */ get id(): string | undefined; set id(id: string | undefined); /** * Get or set the source. */ get source(): string | undefined; set source(source: string | undefined); /** * Get or set the type. */ get type(): string | undefined; set type(type: string | undefined); /** * Get or set the datacontenttype. */ get datacontenttype(): string | undefined; set datacontenttype(datacontenttype: string | undefined); /** * Get or set the dataschema. */ get dataschema(): string | undefined; set dataschema(dataschema: string | undefined); /** * Get or set the subject. */ get subject(): string | undefined; set subject(subject: string | undefined); /** * Get or set the time. */ get time(): Date | undefined; set time(time: Date | undefined); private getString; }