import '@epic-web/workshop-utils/init-env'; /** * Find the workshop root directory by walking up from the current directory * looking for a package.json with an epicshop field. * Returns the workshop root path if found, null otherwise. */ export declare function findWorkshopRoot(startDir?: string): Promise; /** * Check if the current working directory is inside a workshop * (has epicshop config in package.json in current dir or any parent) */ export declare function isInWorkshopDirectory(): Promise; export type WorkshopsResult = { success: boolean; message?: string; error?: Error; }; export type AddOptions = { repoName?: string; repoRef?: string; directory?: string; destination?: string; silent?: boolean; }; export type StartOptions = { workshop?: string; silent?: boolean; }; export type ConfigOptions = { reposDir?: string; preferredEditor?: string; silent?: boolean; subcommand?: 'reset' | 'delete' | 'editor'; }; /** * Add a workshop by cloning from epicweb-dev GitHub org and running setup */ export declare function add(options: AddOptions): Promise; /** * List all workshops found in the repos directory */ export declare function list({ silent, }?: { silent?: boolean; }): Promise; /** * Remove a workshop (deletes the directory) */ export declare function remove({ workshop, silent, }: { workshop?: string; silent?: boolean; }): Promise; /** * Start a workshop */ export declare function startWorkshop(options?: StartOptions): Promise; /** * Open a workshop in the user's editor */ export declare function openWorkshop(options?: StartOptions): Promise; /** * Configure workshops settings */ export declare function config(options?: ConfigOptions): Promise; /** * Check if the workshops directory is configured, and run onboarding if not * Call this at the start of any command that requires the config to be set */ export declare function ensureConfigured(): Promise; /** * Run the onboarding flow for new users */ export declare function onboarding(): Promise; /** * Check if the workshops directory is configured */ export declare function isConfigured(): Promise;