import type { CiteResult } from "../../features/operations/cite.js"; import { type ExecutionContext } from "../execution-context.js"; /** * Options for the cite command. */ export interface CiteCommandOptions { identifiers: string[]; uuid?: boolean; style?: string; cslFile?: string; locale?: string; output?: "text" | "html" | "rtf"; inText?: boolean; } /** * Result from cite command execution. */ export type CiteCommandResult = CiteResult; /** * Execute cite command. * Uses context.library.cite() which works for both local and server modes. * * @param options - Cite command options * @param context - Execution context * @returns Cite result containing per-identifier results */ export declare function executeCite(options: CiteCommandOptions, context: ExecutionContext): Promise; /** * Format cite result for CLI output. * * @param result - Cite result * @returns Formatted output string (for stdout) */ export declare function formatCiteOutput(result: CiteCommandResult): string; /** * Format cite errors for stderr. * * @param result - Cite result * @returns Error messages to write to stderr */ export declare function formatCiteErrors(result: CiteCommandResult): string; /** * Determine exit code based on result. * * @param result - Cite result * @returns Exit code (0 for success/partial success, 1 for complete failure) */ export declare function getCiteExitCode(result: CiteCommandResult): number; export declare function handleCiteAction(identifiers: string[], options: Omit, globalOpts: Record): Promise; //# sourceMappingURL=cite.d.ts.map