/**
 * The remote device a connection speaks for (senpi#5475, omo-relay-daemon#184 P5).
 *
 * A relay forwarder opens one engine connection per remote sender and declares, through its own
 * `set_client_info`, which device that connection speaks for. Every dialog a command of that connection raises
 * then carries the value as `remoteOrigin`, so the host's desktop and TUI can label it "Requested from <device>".
 * A connection that never declared one is local, and its dialogs carry no `remoteOrigin`. The engine copies only
 * this declared value, never a free-form client name. `set_client_info` is `connection_local` in the method-class
 * table, so a forwarded record can never set or change it.
 */
export interface RpcRemoteOrigin {
    readonly deviceId: string;
    readonly deviceName?: string;
}
/**
 * Validates a `set_client_info.remoteOrigin` against what the connection already declared, before anything of the
 * declaration is committed: the origin to record (none when the field is absent), or the refusal to answer.
 */
export declare function remoteOriginDeclaration(value: unknown, accepts: (origin: RpcRemoteOrigin) => boolean): {
    readonly origin: RpcRemoteOrigin | undefined;
} | {
    readonly refusal: string;
};
export declare function sameRemoteOrigin(a: RpcRemoteOrigin, b: RpcRemoteOrigin): boolean;
export declare function remoteOriginField(origin: RpcRemoteOrigin | undefined): {
    remoteOrigin?: RpcRemoteOrigin;
};
export declare function originField(origin: RpcRemoteOrigin | undefined): {
    origin?: RpcRemoteOrigin;
};
//# sourceMappingURL=remote-origin.d.ts.map