import { type Inline, type LinkTarget } from '@mdgate/document'; /** Field accumulator: instruction text before the separator, result after. */ export interface FieldFrame { instr: string; inResult: boolean; inlines: Inline[]; } export declare function emptyFieldFrame(): FieldFrame; /** Finish a field: wrap the result in a link when the instruction is a hyperlink. */ export declare function fieldResult(instr: string, content: Inline[]): Inline[]; /** Interpret a HYPERLINK field instruction as a link target. */ export declare function hyperlinkTarget(instr: string): LinkTarget | undefined; /** Classify an OPC relationship target as a link target. */ export declare function classifyRelTarget(external: boolean, target: string): LinkTarget;