import * as Options from '../options'; import { BaseService } from '../infrastructure'; import { SmartCollection } from '../interfaces'; export declare class SmartCollections extends BaseService { constructor(shopDomain: string, accessToken: string); /** * Get a count of all smart collections that contain a given product * @param options Options for filtering the results. * @see https://help.shopify.com/api/reference/smartcollection#count */ count(options?: Options.CollectionCountOptions): Promise; /** * Get a list of all smart collections that contain a given product * @param options Options for filtering the results. */ list(options?: Options.CollectionListOptions): Promise; /** * Get a single collection * @param id The collection's id. * @param options Options for filtering the results. */ get(id: number, options?: Options.CollectionGetOptions): Promise; /** * Create a new smart collection. * @param collection The collection being created. * @param options Options for creating the collection. */ create(collection: Partial): Promise; /** * Updates an collection with the given id. * @param id The collection's id. * @param collection The updated collection. */ update(id: number, collection: Partial): Promise; /** * Deletes an collection with the given id. * @param id The collection's id. */ delete(id: number): Promise; } export default SmartCollections;