import * as Options from '../options'; import { BaseService } from '../infrastructure'; import { Webhook } from '../interfaces'; /** * A service for manipulating Shopify webhooks. */ export declare class Webhooks extends BaseService { constructor(shopDomain: string, accessToken: string); /** * Gets a count of all of the shop's webhooks. * @param options Options for filtering the results. */ count(options?: Options.WebhookCountOptions): Promise; /** * Gets a list of up to 250 of the shop's webhooks. * @param options Options for filtering the results. */ list(options?: Options.WebhookListOptions): Promise; /** * Retrieves the webhook with the given id. * @param options Options for filtering the results. */ get(id: number, options?: Options.WebhookGetOptions): Promise; /** * Creates a new webhook. */ create(webhook: Partial): Promise; /** * Updates the webhook with the given id. * @param webhook The updated webhook. */ update(id: number, webhook: Partial): Promise; /** * Deletes the webhook with the given id. */ delete(id: number): Promise; } export default Webhooks;