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