import {LiveQueryClientComponentProps} from '@sanity/preview-kit/live-query/client-component'
import type {QueryParams} from '@sanity/client'

/** @public */
declare function LiveQuery<QueryResult, QueryParams extends QueryParams = QueryParams>(
  props: LiveQueryProps<QueryResult, QueryParams>,
): React.ReactNode

declare namespace LiveQuery {
  var displayName: string
}
export {LiveQuery}
export default LiveQuery

export {LiveQueryClientComponentProps}

/** @public */
export declare interface LiveQueryProps<QueryResult, QueryParams extends QueryParams = QueryParams>
  extends LiveQueryClientComponentProps<QueryResult, QueryParams> {
  enabled: boolean
  as?: React.ComponentType<any>
}

export {}
