import { type Accessor } from 'solid-js';
import type { Schema } from '../../zero-schema/src/builder/schema-builder.ts';
import type { HumanReadable, Query } from '../../zql/src/query/query.ts';
import { type TTL } from '../../zql/src/query/ttl.ts';
import { type QueryResultDetails } from './solid-view.ts';
export type QueryResult<TReturn> = readonly [
    Accessor<HumanReadable<TReturn>>,
    Accessor<QueryResultDetails>
];
/**
 * @deprecated Use {@linkcode UseQueryOptions} instead.
 */
export type CreateQueryOptions = {
    ttl?: TTL | undefined;
};
export type UseQueryOptions = {
    ttl?: TTL | undefined;
};
/**
 * @deprecated Use {@linkcode useQuery} instead.
 */
export declare function createQuery<TSchema extends Schema, TTable extends keyof TSchema['tables'] & string, TReturn>(querySignal: Accessor<Query<TSchema, TTable, TReturn>>, options?: CreateQueryOptions | Accessor<CreateQueryOptions>): QueryResult<TReturn>;
export declare function useQuery<TSchema extends Schema, TTable extends keyof TSchema['tables'] & string, TReturn>(querySignal: Accessor<Query<TSchema, TTable, TReturn>>, options?: UseQueryOptions | Accessor<UseQueryOptions>): QueryResult<TReturn>;
//# sourceMappingURL=use-query.d.ts.map