export interface BlockHit {
    key: string;
    raw: string;
    token: string;
}
/**
 * Extract legacy magic block syntax from a markdown string.
 * Returns the modified markdown and an array of extracted blocks.
 */
export declare function extractMagicBlocks(markdown: string): {
    replaced: string;
    blocks: BlockHit[];
};
/**
 * Restore extracted magic blocks back into a markdown string.
 */
export declare function restoreMagicBlocks(replaced: string, blocks: BlockHit[]): string;
