@reliverse/rse-sdk
Version:
@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).
20 lines (19 loc) • 1.05 kB
TypeScript
import type { ShadcnConfig, Theme } from "../../sdk-types.js";
declare const THEMES: Theme[];
export declare function readShadcnConfig(cwd: string): Promise<ShadcnConfig | null>;
export declare function getInstalledComponents(cwd: string, config: ShadcnConfig): Promise<string[]>;
interface ComponentOptions {
yes?: boolean;
overwrite?: boolean;
cwd: string;
all?: boolean;
path?: string;
}
export declare function installComponent(cwd: string, component: string, options?: Partial<ComponentOptions>): Promise<void>;
export declare function updateComponent(cwd: string, component: string): Promise<void>;
export declare function removeComponent(cwd: string, config: ShadcnConfig, component: string): Promise<void>;
export declare function applyTheme(cwd: string, config: ShadcnConfig, theme: Theme): Promise<void>;
export declare const AVAILABLE_COMPONENTS: string[];
export { THEMES };
export declare function selectSidebarPrompt(projectPath: string): void;
export declare function selectChartsPrompt(projectPath: string): void;