import type { WixDataQueryOptions } from './types'; /** * Options builder for query operations. * * Use this builder to configure query behavior such as hooks suppression, * language, reference inclusion, and field groups. * @public * @builder * @documentationMaturity preview */ export interface WixDataQueryOptionsBuilder { /** * Sets whether to suppress query hooks. * * When `true`, the query runs without triggering hooks. */ withSuppressHooks(value: boolean): WixDataQueryOptionsBuilder; /** * Sets whether to include draft items in query results. * @internal */ withShowDrafts(value: boolean): WixDataQueryOptionsBuilder; /** * Sets app-specific query options. */ withAppOptions(value: Record): WixDataQueryOptionsBuilder; /** * Sets the language used for the query. */ withLanguage(value: string): WixDataQueryOptionsBuilder; /** * Sets whether the query uses consistent read mode. */ withConsistentRead(value: boolean): WixDataQueryOptionsBuilder; /** * Includes referenced items for the specified reference fields. * * Use `limit` to cap how many referenced items each field returns. */ withIncludeReferences(value: { field: string; limit?: number; }[]): WixDataQueryOptionsBuilder; /** * Sets whether to return the total result count with the query response. */ withReturnTotalCount(value: boolean): WixDataQueryOptionsBuilder; /** * Includes the specified field groups in the query results. */ withIncludeFieldGroups(...value: string[]): WixDataQueryOptionsBuilder; /** * Builds the query options object. */ build(): WixDataQueryOptions; } /** * Creates a new query options builder. * @public * @documentationMaturity preview * * @example * ```ts title="Create a query options builder" * import { items, QueryOptionsBuilder } from '@wix/data' * * const options = QueryOptionsBuilder() * .withSuppressHooks(true) * .withAppOptions({ key: 'value' }) * .withLanguage('en') * .withConsistentRead(true) * .withIncludeReferences([{ field: 'author', limit: 3 }]) * .withReturnTotalCount(true) * .withIncludeFieldGroups('seo', 'details') * .build() * * const result = await items.query( * 'myCollection', * {}, * options * ) * ``` */ export declare const QueryOptionsBuilder: () => WixDataQueryOptionsBuilder; //# sourceMappingURL=WixDataQueryOptionsBuilder.d.ts.map