import type { ParsedArgs } from 'minimist'; import type { ApiBlueprint } from '../../blueprint/index.js'; import type { Command } from '../../commands/registry.js'; import type { CommandSpec } from '../../commands/spec.js'; import { type CompletionShell } from '../../render/completion/index.js'; export type CompletionAction = 'script' | 'install' | 'loader'; /** * Print the completion script for a shell. * * Completions always come from the cached API schema so that they can * be generated without logging in. They may lag the schema served by * Seam when config use-remote-schema is enabled. * * Called by the entry before any auth or blueprint context exists, and by * the registered command's executor — one implementation for both. */ export declare const printCompletion: (shell: CompletionShell, spec: CommandSpec) => void; export declare const printCompletionLoader: (shell: CompletionShell) => void; export declare const installCompletionForShell: (shell: CompletionShell) => Promise; export declare const readCompletionAction: (args: ParsedArgs) => CompletionAction; export declare const resolveCompletionShell: (shellArg: string | undefined, action: CompletionAction) => CompletionShell; type BuildSpec = (blueprint: ApiBlueprint) => CommandSpec; export declare const createCompletionCommands: (buildSpec: BuildSpec) => Command[]; export {};