import type { CitationKeyFormat } from "../../config/schema.js"; import type { ListResult } from "../../features/operations/list.js"; import { type SortField, type SortOrder } from "../../features/pagination/index.js"; import type { ExecutionContext } from "../execution-context.js"; /** * Options for the list command. */ export interface ListCommandOptions { output?: "pretty" | "json" | "bibtex" | "ids" | "uuid" | "pandoc-key" | "latex-key"; json?: boolean; idsOnly?: boolean; uuidOnly?: boolean; bibtex?: boolean; key?: boolean; pandocKey?: boolean; latexKey?: boolean; sort?: SortField; order?: SortOrder; limit?: number; offset?: number; /** Include references marked as superseded (#108); hidden by default */ includeSuperseded?: boolean; } /** * Result from list command execution. */ export type ListCommandResult = ListResult; /** * Execute list command. * Uses context.library.list() which works for both local and server modes. * * @param options - List command options * @param context - Execution context * @returns List result containing raw CslItem[] */ export declare function executeList(options: ListCommandOptions, context: ExecutionContext): Promise; /** * Format list result for CLI output. * * @param result - List result (CslItem[]) * @param options - Command options to determine format * @returns Formatted output string */ export declare function formatListOutput(result: ListCommandResult, options: ListCommandOptions, defaultKeyFormat?: CitationKeyFormat): string; //# sourceMappingURL=list.d.ts.map