import type { QuerySchema } from '@mo-fang/types';
import type { QueryConfig, StoreProtocol } from '../types';
export declare class QueryValue {
    resolveCode: StoreProtocol['resolveCode'];
    resolveReferences: StoreProtocol['resolveReferences'];
    generateActions: StoreProtocol['generateActions'];
    getGlobalQueryConfig: StoreProtocol['getGlobalQueryConfig'];
    throwRuntimeError: StoreProtocol['throwRuntimeError'];
    id: string;
    type: QuerySchema['type'];
    source: Omit<QuerySchema, 'id' | 'type'>;
    data?: unknown;
    isFetching: boolean;
    constructor(querySchema: QuerySchema, { resolveCode, resolveReferences, generateActions, getGlobalQueryConfig, throwRuntimeError, }: Pick<StoreProtocol, 'resolveCode' | 'resolveReferences' | 'generateActions' | 'getGlobalQueryConfig' | 'throwRuntimeError'>);
    setData: (data?: unknown) => void;
    setIsFetching: (isFetching: boolean) => void;
    autoTrigger: () => Promise<void>;
    trigger: (config?: QueryConfig) => Promise<unknown> | undefined;
    reset: () => void;
    runJavaScriptQuery: () => Promise<unknown>;
    runRESTQuery: (config?: QueryConfig) => Promise<unknown>;
    toJSON: () => {
        isFetching: boolean;
        data: unknown;
        trigger: (config?: QueryConfig) => Promise<unknown> | undefined;
        reset: () => void;
    };
}
//# sourceMappingURL=query-value.d.ts.map