/** * User-facing copy for the sign-in lifecycle. * * The same events are reported from two places — the auth-required stub * (signed out) and the bridge (signed in) — and the wording had already * drifted between them. Keeping the strings here means one voice regardless * of which mode the user happens to be in. */ /** What a completed sign-in produced, as the user needs it described. */ export interface LoginSuccessInfo { accountId: string; delegateAddress: string; /** The file `saveCreds` actually wrote — project-local or global. Never a * hardcoded `~/.memwal/credentials.json`: which one it lands in is exactly * the confusion behind GH #628, so the copy states the resolved path. */ credentialsPath: string; } /** What a sign-in prompt needs to describe the flow accurately. */ export interface LoginPromptInfo { /** The connect URL the user must open. */ url: string; /** Where credentials will land — resolved, never assumed to be global. */ credentialsPath: string; /** True when credentials already exist, so signing in REPLACES them. */ signedIn: boolean; /** Set when `freshKey` dropped a pending delegate key. The write-ahead * file no longer has it, so the prompt is the place that names it. */ discardedKey?: { publicKey: string; address: string; }; } /** * The `memwal_login` tool result, for both modes. * * The URL appears three times — plain, fenced, and as a link — on purpose. * Some clients paraphrase tool output aggressively, and repeating it in three * forms means at least one survives into what the user actually sees. Without * the URL the user cannot proceed at all, so this is the one place where * redundancy beats tidiness. */ export declare function loginPrompt(info: LoginPromptInfo): string; /** * Banner prefixed onto the first tool result after a sign-in completes. * * Deliberately a ONE-SHOT, unlike {@link loginFailureNotice}, which repeats * until the user fixes it: a failed sign-in is a state that persists until * they act, but a successful one is an event. Repeating it on every recall * would be noise on top of every result the user asked for. */ export declare function loginSuccessNotice(info: LoginSuccessInfo): string; /** * The `notifications/message` twin of the banner, mirroring the warning the * failure path already sends. Clients differ in which surface they show — * some render notifications inline, others drop them — so the confirmation * goes out on both and neither depends on the other. */ export declare function loginSuccessNotification(info: LoginSuccessInfo): string; /** * Prefix explaining that a sign-in was attempted and did not complete. * * Repeats on every refused tool call, unlike {@link loginSuccessNotice}: this * describes a state the user is still in, and the tool call that started the * sign-in returned its URL long before the failure was known, so there is no * earlier surface left to report it on. * * `reason` null — no attempt on record — yields the empty string, so callers * can prefix unconditionally. * * The advice splits on whether the user approved the wallet step. If they did, * the key is on-chain and in the write-ahead record (WALM-332). A restart * retries that same key. `freshKey: true` mints a new one and closes the * sign-in that is already open. A key already approved on-chain has to be * removed from the dashboard; nothing else will use it. */ export declare function loginFailureNotice(reason: string | null): string; //# sourceMappingURL=messages.d.ts.map