/** * crewx init handler. * Initializes a CrewX project by creating crewx.yaml and supporting dirs. * * Usage: * crewx init Create crewx.yaml in current directory * crewx init --force Overwrite existing configuration */ export interface InitResult { yamlCreated: boolean; hookInstalled: boolean; errors: string[]; skippedReason?: 'yaml-exists'; workspaceId?: string; slug?: string; } /** * Programmatic init — creates crewx.yaml, support dirs, and optionally installs hooks. * Throws on unrecoverable errors (PATH_NOT_FOUND, YAML_CREATE_FAILED). * Partial failures (hook install, mkdir, workspace registration) are collected in InitResult.errors. * Workspace registration is always attempted (even when yaml already exists) so that CLI and * server paths both produce a row in ~/.crewx/crewx.db. */ export declare function handleInit(opts: { path: string; skipHook?: boolean; force?: boolean; }): Promise;