/** * @license * Copyright Elegante All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://elegante.dev/license */ import { Document, DocumentEvent, DocumentQuery } from './query'; export declare type LiveQueryMethod = 'on' | 'once'; export interface LiveQueryMessage extends Document { doc: T; docs: T[]; updatedFields?: Partial | undefined; removedFields?: string[] | undefined; truncatedArrays?: Array<{ /** The name of the truncated field. */ field: string; /** The number of elements in the truncated array. */ newSize: number; }> | undefined; } export interface DocumentLiveQuery extends DocumentQuery { unlock: boolean; collection: string; event?: DocumentEvent | undefined; method: LiveQueryMethod; }