/**
 * `view_url` on the tools that name one record (ADR-362 §2): the write tools
 * that create or change it, and the reads that inspect it. Added in one place,
 * the registry (ToolRegistry, after the executor), so every such answer links
 * the same way: `structuredContent.view_url`, and the same URL on its own line
 * in the text answer (`open it in pica: <url>`, e1's copy).
 *
 * The id is the record the call named (VIEW_URL_TOOLS `args`), else the one
 * the answer returns (`data.id`: a create, or an inspect by ISWC or ISRC). A call naming several
 * records, or none, gets no link: a list is a saved view (slice 3).
 */
import type { ToolResult } from "./index.js";
import { type EntityKind, type ViewRef } from "../lib/view-url.js";
interface LinkRule {
    kind: EntityKind;
    /**
     * The arguments that can name the record, in order (an inspect tool takes
     * `id` or its own `work_id`/`recording_id`/`release_id`). When none is a
     * string, the answer's own id is used: a create, or an inspect by ISWC or
     * ISRC.
     */
    args?: readonly string[];
}
export declare const VIEW_URL_TOOLS: Readonly<Record<string, LinkRule>>;
/**
 * For a tool outside VIEW_URL_TOOLS that names one record in its answer
 * (an agreement sent for signature, a sample logged on a recording): the
 * same `view_url` and line. Returns the result; an id that isn't a UUID
 * leaves it unlinked.
 */
export declare function linkTo<T extends ToolResult>(result: T, ref: ViewRef): T;
/**
 * Add `view_url` to a successful answer of a VIEW_URL_TOOLS tool. Never
 * throws: an id that isn't a UUID, or an answer with no record, gets no link.
 */
export declare function attachViewUrl(result: ToolResult | undefined, toolName: string, args: Record<string, unknown>): void;
export {};
//# sourceMappingURL=view-url-results.d.ts.map