import { type Json } from "./protocol.js";
/** A terminal reference from chat text: a Herdr pane (`w2E:p1`) or tab
 * (`w2E:t1`) id, optionally prefixed by the computer it belongs to. */
export interface TerminalReference {
    computer?: string;
    id: string;
}
/** The reference itself, never a URL, path or a longer code-like token. */
export declare function parseTerminalReference(value: string | null | undefined): TerminalReference;
export interface TerminalResolveOptions {
    /** This Hook's computer, as /v1/health reports it. */
    computer: {
        name: string;
        aliases?: readonly string[];
    };
    /** The pane the text came from, when the client knows it. */
    from?: string | null;
    /** Source Core terminal, used to qualify a bare address from remote output. */
    fromCore?: string | null;
    owner: boolean;
}
/** The terminal a chat reference names, on this computer or a verified peer. */
export declare function resolveTerminalReference(value: string | null | undefined, options: TerminalResolveOptions): Promise<Json>;
