/** An executable and the arguments configured alongside it. */ export interface RerankCommand { /** Program to spawn. Must name a directly executable file, not a shim. */ executable: string; /** Argument templates configured by the operator. */ args: string[]; } /** * Tokenizes the command with a small, platform-independent quoting grammar. * Whitespace separates tokens outside matching single or double quotes; quote * characters group text and are removed. Everything else, including * backslashes and shell metacharacters, stays literal. * * Returns undefined when the string carries no executable or has an unmatched * quote. */ export declare function parseRerankCommand(command: string): RerankCommand | undefined; /** * Replaces runtime placeholders independently in each configured argument. * `replace` scans only the original template, so placeholder-shaped query text * is not interpreted recursively. */ export declare function buildRerankArgv(command: RerankCommand, query: string, top: number): string[]; //# sourceMappingURL=command.d.ts.map