import { z } from "zod";
import { type AuthStatus, type ClaudeHome } from "./claude-accounts.js";
import { type Json } from "./protocol.js";
export declare const accountAddSchema: z.ZodObject<{
    slug: z.ZodString;
    email: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
/** An existing slot's sign-in: `sign-in` opens `claude /login` for it, `sign-in-status` says whether it is signed in. */
export declare const accountSignInSchema: z.ZodObject<{
    slug: z.ZodString;
    mode: z.ZodEnum<{
        "sign-in": "sign-in";
        "sign-in-status": "sign-in-status";
    }>;
}, z.core.$strict>;
/**
 * `claude /login` under the slot's own home, never the pane shell's: a shell that exports CLAUDE_CONFIG_DIR
 * (`~/.claude-work` from the owner's profile) would otherwise sign in that account while the Hook checks this
 * one. The default home the Hook found without CLAUDE_CONFIG_DIR runs with it removed (Claude's own default,
 * where its keychain item lives); every home the Hook found through it, the default one included and even when
 * that is ~/.claude, runs with it set to the home, as the Hook's own status check does. `env` runs a program,
 * not the shell's alias for `claude` (an old local install's `alias claude=~/.claude/local/claude`), so the
 * command names the `claude` the Hook finds on its PATH, when it finds one.
 */
export declare function loginCommand(home: ClaudeHome, claude?: string | undefined): string;
/**
 * Sign in an account slot that exists but is signed out, from the phone: opens a pane running `claude /login`
 * for it, as adding an account does, for the owner to finish. A slot already signed in is refused; one whose
 * state Claude did not report opens anyway (logging in again is harmless). `sign-in-status` answers whether
 * it is signed in now: asked afresh while a sign-in pane for the slot is open (the owner is finishing the
 * login there, so a cached answer would lag it), else at most half a minute old when signed out.
 */
export declare function signInClaudeAccount(input: unknown, server: string, auth?: (home: ClaudeHome, options: {
    fresh: boolean;
}) => Promise<AuthStatus>): Promise<Json>;
/** Open a shell for the owner to complete the existing interactive flow. */
export declare function addClaudeAccount(input: unknown, server: string): Promise<Json>;
