import { LitElement, ReactiveController, ReactiveControllerHost } from 'lit';
import { QueryClient, QueryObserverResult, QueryObserverOptions, QueryObserver } from '@tanstack/query-core';
import { ContextConsumer } from '@lit/context';
import { WeavyType } from '../contexts/weavy-context';
export declare class QueryController<TData = unknown> implements ReactiveController {
    host: ReactiveControllerHost;
    context?: ContextConsumer<{
        __context__: WeavyType;
    }, LitElement>;
    whenContext?: Promise<void>;
    resolveContext?: (value: void | PromiseLike<void>) => void;
    observer?: QueryObserver<TData>;
    private _result?;
    get result(): QueryObserverResult<TData>;
    private observerUnsubscribe?;
    constructor(host: ReactiveControllerHost);
    setContext(): Promise<void>;
    hostUpdate(): void;
    trackQuery(queryOptions: QueryObserverOptions<TData>, optimistic?: boolean, queryClient?: QueryClient): Promise<void>;
    observerSubscribe(optimistic?: boolean): void;
    untrackQuery(): void;
    hostConnected(): void;
    hostDisconnected(): void;
}
//# sourceMappingURL=query-controller.d.ts.map