import { WatchCompatibleQuery, WatchedQuery, WatchedQueryOptions } from '../WatchedQuery.js'; import { AbstractQueryProcessor, AbstractQueryProcessorOptions, LinkQueryOptions } from './AbstractQueryProcessor.js'; import { WatchedQueryComparator } from './comparators.js'; /** * Settings for {@link WatchedQuery} instances created via {@link Query#watch}. */ export interface WatchedQuerySettings extends WatchedQueryOptions { query: WatchCompatibleQuery; } /** * {@link WatchedQuery} returned from {@link Query#watch}. */ export type StandardWatchedQuery = WatchedQuery>; /** * @internal */ export interface OnChangeQueryProcessorOptions extends AbstractQueryProcessorOptions> { comparator?: WatchedQueryComparator; } /** * Uses the PowerSync onChange event to trigger watched queries. * Results are emitted on every change of the relevant tables. * @internal */ export declare class OnChangeQueryProcessor extends AbstractQueryProcessor> { protected options: OnChangeQueryProcessorOptions; constructor(options: OnChangeQueryProcessorOptions); /** * @returns If the sets are equal */ protected checkEquality(current: Data, previous: Data): boolean; protected linkQuery(options: LinkQueryOptions): Promise; }