/**
 * upgradeElement - Upgrade element from v1 single-body to v2 dual-field format
 *
 * v1 format: Body text after YAML frontmatter, no `instructions` key in YAML
 * v2 format: `instructions` in YAML frontmatter, `content` as markdown body
 *
 * Detection: If YAML frontmatter contains `instructions` key → already v2.
 * Otherwise → v1, apply per-type default mapping.
 *
 * @see Plan: Dual-Field Element Architecture
 */
import { ElementCrudContext } from './types.js';
export interface UpgradeElementArgs {
    name: string;
    type: string;
    /** Preview changes without writing to disk */
    dry_run?: boolean;
    /** Manually specify instructions (overrides auto-detection) */
    instructions_override?: string;
    /** Manually specify content (overrides auto-detection) */
    content_override?: string;
}
/**
 * Upgrade an element from v1 single-body format to v2 dual-field format.
 */
export declare function upgradeElement(context: ElementCrudContext, args: UpgradeElementArgs): Promise<{
    content: {
        type: string;
        text: string;
    }[];
}>;
//# sourceMappingURL=upgradeElement.d.ts.map