#!/usr/bin/env node import { Command } from 'commander'; import { type CredentialStores, type StoredOAuthCredential } from './credentials.js'; import { type ImportBundle, type ImportPreview, type ImportResult } from './import.js'; import { type OAuthLoginOptions } from './oauth.js'; import { ProfileStore } from './profiles.js'; import { type PromptIo } from './prompt.js'; import { type ContextResolver } from './resolvers.js'; import type { createLocalResolver, createRemoteResolver } from './resolvers.js'; export interface CliIo { stdout: (text: string) => void; stderr: (text: string) => void; } export interface CliDependencies { /** Injected so interactive steps can be driven by a test without a terminal. */ promptIo?: PromptIo; env?: NodeJS.ProcessEnv; cwd?: string; platform?: NodeJS.Platform; fetch?: typeof fetch; credentialStores?: (home: string) => CredentialStores; profileStore?: (home: string) => ProfileStore; oauthLogin?: (options: OAuthLoginOptions) => Promise; createRemoteResolver?: typeof createRemoteResolver; createLocalResolver?: typeof createLocalResolver; startMcpServer?: (options: { resolver: ContextResolver; }) => Promise; createImportBundle?: (home: string) => Promise; remoteImport?: (options: { baseUrl: string; workspaceId: string; contextId: string; bundle: ImportBundle; planId?: string; }) => Promise; } export declare function createCli(io?: CliIo, dependencies?: CliDependencies): Command; export declare function runCli(argv?: string[], io?: CliIo, dependencies?: CliDependencies): Promise; //# sourceMappingURL=cli.d.ts.map