import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Policy, GetPolicyOptions, GetPolicyResponse, UpdatePolicy, UpdatePolicyResponse, PolicyCreatedEnvelope, PolicyUpdatedEnvelope } from './index.typings.js'; export { ActionEvent, BaseEventMetadata, CreatePolicyRequest, CreatePolicyResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetPolicyRequest, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, PolicyRule, RestaurantLocationProperties, RestaurantLocationsUpdatedEvent, RestoreInfo, SpecialEvent, SyncLocationsSource, Type, UpdatePolicyRequest, WebhookIdentityType, WeeklyTimeInterval } from './index.typings.js'; type PolicyNonNullablePaths = `enabled` | `rules` | `rules.${number}.volumeLimit` | `rules.${number}.includeContactlessDineinOrders`; declare function createPolicy$1(httpClient: HttpClient): CreatePolicySignature; interface CreatePolicySignature { /** * Creates a new Policy * The default location id for the metaSite will be used if the location_id is not provided * @param - The policy to be created * @returns The created Policy */ (policy: NonNullablePaths): Promise>; } declare function getPolicy$1(httpClient: HttpClient): GetPolicySignature; interface GetPolicySignature { /** * Get a Policy by location_id * The default location id for the metaSite will be used if the location_id is not provided */ (options?: GetPolicyOptions): Promise>; } declare function updatePolicy$1(httpClient: HttpClient): UpdatePolicySignature; interface UpdatePolicySignature { /** * Update a Policy * The default location id for the metaSite will be used if the location_id is not provided * Pass the latest `revision` for a successful update * @param - The policy's id */ (_id: string, policy: NonNullablePaths): Promise>; } declare const onPolicyCreated$1: EventDefinition; declare const onPolicyUpdated$1: EventDefinition; declare const createPolicy: MaybeContext & typeof createPolicy$1>; declare const getPolicy: MaybeContext & typeof getPolicy$1>; declare const updatePolicy: MaybeContext & typeof updatePolicy$1>; /** */ declare const onPolicyCreated: BuildEventDefinition; /** */ declare const onPolicyUpdated: BuildEventDefinition; export { GetPolicyOptions, GetPolicyResponse, Policy, PolicyCreatedEnvelope, PolicyUpdatedEnvelope, UpdatePolicy, UpdatePolicyResponse, createPolicy, getPolicy, onPolicyCreated, onPolicyUpdated, updatePolicy };