import type { WatchdogSqliteOwner } from "@fungi.computer/watchdog"; /** Record the name a name-addressed wake carries. */ export declare function recordComputerName(sql: WatchdogSqliteOwner["sql"], name: string): void; /** * The wake's own name, else the recorded one. Read-only: it never recreates * the record after an erasure. Undefined only when no name-addressed wake has * reached this Computer. */ export declare function computerName(sql: WatchdogSqliteOwner["sql"], wokenAs: string | undefined): string | undefined; /** * Learn the name of a Computer no named wake has reached, from names its host * already knows. A candidate is accepted only when the Computer's own * namespace derives this object's id from it; anything else is refused and * never stored. Call it only where recording is wanted, never after an * erasure that must stay erased. */ export declare function learnComputerName(sql: WatchdogSqliteOwner["sql"], id: Id, namespace: Readonly<{ idFromName(name: string): Id; }> | undefined, candidates: readonly string[]): string | undefined;