/** * Amp TypeScript SDK * * This SDK provides a TypeScript interface to the Amp CLI, allowing you to * run Amp programmatically in Node.js applications. It wraps the Amp CLI * with the --stream-json flag to provide structured output. */ import { type ExecuteOptions, type Permission, type PermissionMatchCondition, type StreamMessage, ThreadsMarkdownOptions, ThreadsNewOptions, ThreadsSetMultiplayerOptions, UserInputMessage } from './types.js'; /** Execute a command with Amp CLI and return an async iterator of messages */ export declare function execute(options: ExecuteOptions): AsyncIterable; /** Create a new empty thread and return its ID */ declare function newThread(options?: ThreadsNewOptions): Promise; /** Get a thread rendered as markdown */ declare function getThreadMarkdown(options: ThreadsMarkdownOptions): Promise; /** * Open or close a thread for contributions (multiplayer). * * Only works on orb threads with shared (non-private) visibility, and only for the thread * owner. With no duration options, opening uses the server default (currently 3 hours). */ declare function setThreadMultiplayer(options: ThreadsSetMultiplayerOptions): Promise; /** Thread commands */ export declare const threads: { new: typeof newThread; markdown: typeof getThreadMarkdown; setMultiplayer: typeof setThreadMultiplayer; }; /** Create a user input message for streaming conversations */ export declare function createUserMessage(text: string): UserInputMessage; /** Create a permission object for controlling tool usage */ export declare function createPermission(tool: string, action: 'allow' | 'reject' | 'ask' | 'delegate', options?: { matches?: Record; context?: 'thread' | 'subagent'; to?: string; }): Permission; export * from './types.js'; //# sourceMappingURL=index.d.ts.map