import type { Config } from '../../config/schema.js'; export interface InitWorkspaceCoreOptions { configPath: string; workspacePath: string; /** When set with a new config file, overrides schema default port (e.g. Electron). */ gatewayPort?: number; /** When true, sets the default agent manifest workspace root to `workspacePath`. */ persistWorkspacePath?: boolean; /** Optional channel plugin validator (CLI/gateway only; Electron omits). */ assertChannelPlugins?: (cfg: Config) => void | Promise; } export interface InitWorkspaceResult { /** Fully-initialised config (matches disk after any write). */ config: Config; /** Gateway auth token (always present after init). */ token: string; configCreated: boolean; workspaceCreated: boolean; } /** * Workspace + config initialisation without importing bundled channel plugins. * Used by Electron main; CLI/gateway should call {@link initWorkspace} instead. */ export declare function initWorkspaceCore(options: InitWorkspaceCoreOptions): Promise;