import type { PatchInfo } from '../../patch/types.js';
export interface ServerEvent {
    kind: string;
}
/**
 * A broadcast event dispatched by the server when an object was patched.
 */
export interface ServerPatchEvent extends ServerEvent {
    /**
     * Describes this event.
     */
    kind: 'patch';
    /**
     * Whether the object meta data were patched or the media (the content).
     * Note, folders are always meta.
     */
    type: 'media' | 'meta';
    /**
     * The patch information. The exact type depends on the `type` property.
     */
    value: PatchInfo;
    /**
     * The id of the user who patched the document.
     */
    uid: string;
    /**
     * For files, the old version of the object before the patch.
     */
    version?: number;
    /**
     * For files, the new version of the object after the patch.
     */
    newVersion?: number;
}
/**
 * A broadcast event dispatched by the server when an object was deleted.
 */
export interface ServerDeleteEvent extends ServerEvent {
    /**
     * Describes this event.
     */
    kind: 'delete';
    /**
     * The id of the user deleting the object.
     */
    uid: string;
}
//# sourceMappingURL=Backend.d.ts.map