import type { QueryDefinition } from '@astrale-os/sdk/query';
import type { GraphResource } from './resource.js';
export interface QueryResourceOptions {
readonly keepPrevious?: boolean;
readonly refreshInterval?: number;
readonly refreshWhen?: 'always' | 'visible';
}
/** Execute one named SDK Query definition exclusively through the current GraphStore. */
export declare function useQuery(definition: QueryDefinition | null, input: Input, options?: QueryResourceOptions): GraphResource