import { type SupersededReason } from "../../core/csl-json/types.js"; import type { IdentifierType } from "../../core/library-interface.js"; import { type DeprecateResult } from "../../features/operations/deprecate.js"; import { type ExecutionContext } from "../execution-context.js"; /** * Options for the deprecate command. */ export interface DeprecateCommandOptions { identifier: string; /** Successor identifier (`--to`) */ target?: string; reason?: SupersededReason; unset?: boolean; idType?: IdentifierType; } export type DeprecateCommandResult = DeprecateResult; /** * Execute the deprecate command. * * `deprecateReference` only touches ILibrary methods, so this works unchanged in server mode. */ export declare function executeDeprecate(options: DeprecateCommandOptions, context: ExecutionContext): Promise; /** * Validate the option combination before touching the library. * * @returns An error message, or null when the combination is usable */ export declare function validateDeprecateOptions(options: { to?: string | undefined; unset?: boolean | undefined; reason?: string | undefined; }): string | null; /** * Human-readable result line for text output. Written to stderr, like other mutation commands. */ export declare function formatDeprecateOutput(result: DeprecateCommandResult, identifier: string): string; export interface DeprecateActionOptions { to?: string; unset?: boolean; reason?: string; uuid?: boolean; output?: string; full?: boolean; [key: string]: unknown; } /** * Handle the `deprecate` command. */ export declare function handleDeprecateAction(identifier: string, options: DeprecateActionOptions, globalOpts: Record): Promise; //# sourceMappingURL=deprecate.d.ts.map