import { Editor } from '../../Editor.js';
import { PartId } from '../types.js';
export interface FindOrCreateOptions {
    target: string;
    type: string;
    partId?: PartId;
    dryRun?: boolean;
    expectedRevision?: string;
}
/**
 * Find an existing relationship or create a new one via `mutatePart`.
 *
 * Returns the rId string, or null on failure.
 */
export declare function findOrCreateRelationship(editor: Editor, source: string, options: FindOrCreateOptions): string | null;
//# sourceMappingURL=relationships-mutation.d.ts.map