import type { WixDataSaveOptions } from './types'; /** * Options builder for save operations. * * Use this builder to configure save behavior such as hooks suppression, * and saving reference values. * @public * @builder * @documentationMaturity preview */ export interface WixDataSaveOptionsBuilder { /** * Sets whether to suppress save hooks. * * When `true`, the save operation runs without triggering hooks. */ withSuppressHooks(value: boolean): WixDataSaveOptionsBuilder; /** * Sets whether to include draft items when saving items. * @internal */ withShowDrafts(value: boolean): WixDataSaveOptionsBuilder; /** * Sets whether to include referenced items in the save response. * @internal */ withIncludeReferences(value: boolean): WixDataSaveOptionsBuilder; /** * Sets whether to save reference values from the data item. */ withSaveReferences(value: boolean): WixDataSaveOptionsBuilder; /** * Builds the save options object. */ build(): WixDataSaveOptions; } /** * Creates a new save options builder. * @public * @documentationMaturity preview * * @example * ```ts title="Create a save options builder" * import { items, SaveOptionsBuilder } from '@wix/data' * * const options = SaveOptionsBuilder() * .withSuppressHooks(true) * .build() * * const savedItem = await items.save( * 'myCollection', * { _id: 'myItemId', title: 'Updated title' }, * options * ) * ``` */ export declare const SaveOptionsBuilder: () => WixDataSaveOptionsBuilder; //# sourceMappingURL=WixDataSaveOptionsBuilder.d.ts.map