/** * Credentials and the endpoint may be given in the environment. * * Each variable overrides the corresponding stored value for as long as it * is set, so any of them may be used per command or per shell. Commands that * would store an overridden value fail instead: see {@link assertEnvVarUnset}. */ /** Overrides the token stored by `seam login`. */ export declare const tokenEnvVar = "SEAM_CLI_TOKEN"; /** Overrides the workspace stored by `seam select workspace`. */ export declare const workspaceIdEnvVar = "SEAM_CLI_WORKSPACE_ID"; /** Overrides the endpoint stored by `seam select endpoint`. */ export declare const endpointEnvVar = "SEAM_CLI_ENDPOINT"; export declare const getTokenFromEnv: () => string | null; export declare const getWorkspaceIdFromEnv: () => string | null; export declare const getEndpointFromEnv: () => string | null; /** Reported without a stack trace: the environment is at fault, not the CLI. */ export declare class EnvVarOverrideError extends Error { name: string; } /** * Refuse to store a value the environment overrides. * * Storing it would have no effect while the variable is set, so a command * that appears to succeed would leave the CLI using something else. * * @param action What the command does, e.g., `log in`. */ export declare const assertEnvVarUnset: (envVar: string, envValue: string | null, action: string) => void; /** * Whether the CLI runs inside a hosted web terminal, where it cannot open * anything in a browser of its own. */ export declare const isInsideWebBrowser: () => boolean;