import type { FilterExpression } from '@wix/sdk-types'; import type { WixDataItem, WixDataQuerySpec } from './types'; import type { WixDataPatchOptions } from './WixDataPatch'; /** * Options builder for patch operations. * * Use this builder to configure patch behavior such as hooks suppression, * and conditional patching. * @public * @builder * @documentationMaturity preview */ export interface WixDataPatchOptionsBuilder { /** * Sets whether to suppress patch hooks. * * When `true`, the patch runs without triggering hooks. */ withSuppressHooks(value: boolean): WixDataPatchOptionsBuilder; /** * Sets whether to include draft items when patching an item. * @internal */ withShowDrafts(value: boolean): WixDataPatchOptionsBuilder; /** * Sets the condition that determines whether to patch the item. */ withCondition(value: FilterExpression): WixDataPatchOptionsBuilder; /** * Builds the patch options object. */ build(): WixDataPatchOptions; } /** * Creates a new patch options builder. * @public * @documentationMaturity preview * * @example * ```ts title="Create a patch options builder" * import { items, PatchOptionsBuilder, Filter } from '@wix/data' * * const options = PatchOptionsBuilder() * .withSuppressHooks(true) * .withCondition(Filter('status').eq('active')) * .build() * * const item = await items.patch('myCollection', 'someId', option) * ``` */ export declare const PatchOptionsBuilder: () => WixDataPatchOptionsBuilder; //# sourceMappingURL=WixDataPatchOptionsBuilder.d.ts.map