import { Schema } from 'effect'; import type { Obj, Relation } from '@dxos/echo'; import { type DXN, type ObjectId } from '@dxos/keys'; /** * Client-side view onto an EDGE queue. */ export interface Queue { readonly dxn: DXN; readonly isLoading: boolean; readonly error: Error | null; readonly objects: T[]; toJSON(): any; /** * Appends objects to the queue. */ append(objects: T[]): Promise; /** * Deletes objects from the queue. */ delete(ids: string[]): Promise; /** * Query all objects in the queue. */ queryObjects(): Promise; /** * Queries objects by id. */ getObjectsById(ids: ObjectId[]): Promise<(T | null)[]>; /** * Refreshes the queue from the server. */ refresh(): Promise; } export declare const Queue: Schema.Schema; //# sourceMappingURL=types.d.ts.map