/** * Shell tab-completion support for opencli. * * Provides: * - Shell script generators for bash, zsh, and fish * - Dynamic completion logic that returns candidates for the current cursor position */ import { bashCompletionScript, zshCompletionScript, fishCompletionScript } from './completion-shared.js'; export { bashCompletionScript, zshCompletionScript, fishCompletionScript }; /** * Return completion candidates given the current command-line words and cursor index. * Requires full CLI discovery to have been run (uses getRegistry()). * * @param words - The argv after 'opencli' (words[0] is the first arg, e.g. site name) * @param cursor - 1-based position of the word being completed (1 = first arg) */ export declare function getCompletions(words: string[], cursor: number): string[]; /** * Print the completion script for the requested shell. */ export declare function printCompletionScript(shell: string): void;