/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import type { CommandArgumentSchema, CompletionResult, TokenInfo } from './types.js';
import type { CommandContext } from '../types.js';
export type CompletionInput = string | {
    args?: string;
    completedArgs?: readonly string[];
    partialArg?: string;
    commandPathLength?: number;
};
export declare function tokenize(fullLine: string): TokenInfo;
export declare function createCompletionHandler(schema: CommandArgumentSchema): (ctx: CommandContext, input: CompletionInput | undefined, fullLine: string) => Promise<CompletionResult>;
