/** * URL Command * * Resolves and displays reference URLs with type filters and browser opening support. */ import { type ExecutionContext } from "../execution-context.js"; /** * Options for the url command. */ export interface UrlCommandOptions { default?: boolean; doi?: boolean; pubmed?: boolean; pmcid?: boolean; open?: boolean; uuid?: boolean; } /** * Result for a single identifier URL resolution. */ export interface UrlResult { id: string; urls: string[]; error?: string; } /** * Result of URL command execution. */ export interface UrlCommandResult { results: UrlResult[]; openError?: string; } /** * Execute URL command: resolve URLs for given identifiers. */ export declare function executeUrlCommand(identifiers: string[], options: UrlCommandOptions, context: ExecutionContext): Promise; /** * Format URL command output based on result and options. * * Rules: * - Single ID, no filter: URLs only (1 per line) * - Multiple IDs, no filter: TSV (id\turl) * - With filter (--default, --doi, etc.): plain URLs, 1 per line */ export declare function formatUrlOutput(result: UrlCommandResult, options: UrlCommandOptions): string; /** * Format URL command errors for stderr. */ export declare function formatUrlErrors(result: UrlCommandResult): string; /** * Get exit code for URL command result. */ export declare function getUrlExitCode(result: UrlCommandResult): number; /** * Handle 'url' command action. */ export declare function handleUrlAction(identifiers: string[] | undefined, options: UrlCommandOptions, globalOpts: Record): Promise; //# sourceMappingURL=url.d.ts.map