/** * Edit feature entry point * * Orchestrates the edit workflow: * 1. Serialize items to YAML/JSON * 2. Create temp file * 3. Open editor * 4. Parse edited content * 5. Return edited items */ import type { CslItem } from "../../core/csl-json/types.js"; import { type EditFormat } from "./edit-session.js"; export type { EditFormat }; export interface EditOptions { format: EditFormat; editor: string; } export interface EditResult { success: boolean; editedItems: Record[]; error?: string; aborted?: boolean; } /** * Executes the edit workflow with validation retry loop. * * @param items - The CSL items to edit * @param options - Edit options (format, editor) * @returns The edit result containing edited items or error */ export declare function executeEdit(items: CslItem[], options: EditOptions): Promise; export { resolveEditor } from "./editor-resolver.js"; export { deserializeFromJson, serializeToJson } from "./json-serializer.js"; export { deserializeFromYaml } from "./yaml-deserializer.js"; export { serializeToYaml } from "./yaml-serializer.js"; //# sourceMappingURL=index.d.ts.map