import * as Effect from 'effect/Effect'; import type * as SqlClient from 'effect/sql/SqlClient'; import * as EffectStream from 'effect/Stream'; import { Context } from '@dxos/context'; import * as RuntimeProvider from '@dxos/effect/RuntimeProvider'; import { BaseError } from '@dxos/errors'; import { type FeedStore } from '@dxos/feed'; import { type FeedService } from '@dxos/protocols/rpc'; /** * Writes feed data to a local FeedStore. */ export declare class LocalFeedServiceImpl implements FeedService.Handlers { #private; constructor(runtime: RuntimeProvider.RuntimeProvider, feedStore: FeedStore, options?: { syncFeed?: (ctx: Context, request: FeedService.SyncFeedRequest) => Promise; }); ['FeedService.queryFeed'](request: FeedService.QueryFeedRequest): Effect.Effect; /** * Pushes the feed's full contents on subscribe, then on every {@link FeedStore.onNewBlocks} signal * a delta: the blocks written since, and position changes and removals of blocks sent before. Each * push costs a scan of block heads plus the new payloads, not a re-read of the whole feed. * * `after`, `limit` and `reverse` are ignored: a subscriber is sent every block of its feeds. */ ['FeedService.subscribeFeed'](request: FeedService.QueryFeedRequest): EffectStream.Stream; ['FeedService.insertIntoFeed'](request: FeedService.InsertIntoFeedRequest): Effect.Effect; ['FeedService.deleteFromFeed'](request: FeedService.DeleteFromFeedRequest): Effect.Effect; ['FeedService.syncFeed'](request: FeedService.SyncFeedRequest): Effect.Effect; ['FeedService.getSyncState'](request: FeedService.GetSyncStateRequest): Effect.Effect; ['FeedService.subscribeSyncState'](request: FeedService.GetSyncStateRequest): EffectStream.Stream; } //# sourceMappingURL=local-feed-service.d.ts.map