import type { CliContext } from '../context/types.js'; /** Permissions hosted c15t setup needs: read organizations, manage projects. */ export declare const LOGIN_SCOPES = "organizations.read,organizations.write,projects.read,projects.write"; /** Result of `c15t login`. Never contains tokens. */ export type LoginResult = { authenticated: true; expiresAt?: number; status: 'logged-in'; } | { authenticated: false; expiresAt?: number; nextStep: { command: string; instruction: string; }; status: 'pending'; userCode: string; verificationUri: string; }; /** * Sign in through Inth, the shared session store for c15t and the inth CLI. * * - Interactive terminals run Inth's browser login. * - `--email` requests an approval link and code that a person opens on any * device. Human output waits for approval; `--json` returns the link at once * and `--complete` waits for approval in a separate call. * - CI can skip login by setting INTH_TOKEN to an organization API key. * @param context CLI context with `email`, `complete`, `timeout`, `force` and * `no-browser` flags. * @returns Login state, or the pending approval link for `--email --json`. * @throws {CliError} INPUT_REQUIRED without a terminal or email, plus any * mapped Inth failure. */ export declare const login: (context: CliContext) => Promise;