import type { OtherPresence } from "./presence.js"; import { type AttributedRecentEdit, type RecentEdit } from "./types.js"; export { RECENT_EDITS_MAX, RECENT_EDIT_TTL_MS, type AttributedRecentEdit, type RecentEdit, type RecentEditDescriptor, } from "./types.js"; export declare function appendRecentEdit(existing: RecentEdit[] | undefined, edit: RecentEdit): RecentEdit[]; export declare function collectRecentEdits(others: OtherPresence[], ttlMs: number, now: number): AttributedRecentEdit[]; export interface UseRecentEditsOptions { ttlMs?: number; } export declare function useRecentEdits(others: OtherPresence[], options?: UseRecentEditsOptions): AttributedRecentEdit[]; export declare function publishRecentEdit(awareness: { getLocalState: () => Record | null; setLocalStateField: (field: string, value: unknown) => void; }, edit: Omit & { at?: number; }): void;