import type { ResolvedWorkspace } from "./workspace.js"; /** `--code -` reads the code from stdin, keeping it out of shell history. */ export declare const STDIN_CODE = "-"; export type EmailLoginOptions = { email?: string; code?: string; workspaceName?: string; workspaceUuid?: string; baseUrl?: string; /** * What to re-run when a code was sent but there is no terminal to type it * into. Defaults to the `login` form. `start` passes its own, because * finishing through `login` would sign the user in and stop there, losing * the destination the run was headed for. */ resumeCommand?: string; }; export type EmailSignInResult = { outcome: "signedIn"; email: string; workspace: ResolvedWorkspace; } /** The code was sent, but there is no terminal to type it back into. */ | { outcome: "codeSent"; email: string; next: string; }; /** * Signs in with a code emailed by the identity provider, creating the account * on first use. This is the only channel that needs neither a browser nor an * existing credential. * * Returns rather than prints, because two callers need the same exchange and * report it differently: `login` writes the JSON result a script reads, while * `start` carries on to the next question. */ export declare function signInWithEmail(opts: EmailLoginOptions): Promise; export declare function runEmailLogin(opts: EmailLoginOptions): Promise; //# sourceMappingURL=email.d.ts.map