import type { Component } from '../../types'; interface RegistryOptions { registry?: string; } export default function registry(opts?: RegistryOptions): { add(registry: string): Promise; get(): Promise; getApiComponentByHref(href: string): Promise; getComponentPreviewUrlByUrl(componentHref: string): Promise; putComponent(options: { username?: string; password?: string; token?: string; route: string; path: string; }): Promise; remove(registry: string): Promise; validateComponent(options: { url: string; packageJson: any; }): Promise; }; export type RegistryCli = ReturnType; export {};