import {RenderExtension} from './render-extension'; import type {StandardApi} from './api'; type Components = typeof import('../components'); type AllComponents = Components[keyof Components]; /** * An Argo extension will register for one or more extension points using `shopify.extend()`. * An extension point in an Argo extension is a plain JavaScript function. * This function receives some API for interacting with the application, * and is expected to return a value in a specific shape. * The input arguments and the output type are different * for each extension point. */ export interface ExtensionPoints { /** * This extension point is used to render completely * new content added to the flow of checkout. This extension point is not attached * to any other element in checkout. Instead, a merchant can select the step and position * of your extension when configuring the overall flow of their checkout. */ 'Checkout::Feature::Render': RenderExtension< StandardApi<'Checkout::Feature::Render'>, AllComponents >; 'Checkout::KitchenSink': RenderExtension< StandardApi<'Checkout::KitchenSink'>, AllComponents >; } export type ExtensionPoint = keyof ExtensionPoints;