@reliverse/rse
Version:
@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power
17 lines (16 loc) • 758 B
TypeScript
import { VercelCore } from "@vercel/sdk/core";
import type { ReliverseMemory } from "./schemaMemory.js";
export type InstanceVercel = VercelCore;
/**
* Prompts the user for a Vercel token if none is stored
*/
export declare function askVercelToken(maskInput: boolean, memory: ReliverseMemory): Promise<string | undefined>;
/**
* Creates a new Vercel SDK instance by obtaining the token either from memory
* or by prompting the user. The token is then used to initialize VercelCore.
*
* It's recommended to call it once and pass the instance through the user flow.
*
* This `@vercel/sdk` init returns `[token, vercel]`.
*/
export declare function initVercelSDK(memory: ReliverseMemory, maskInput: boolean): Promise<[string, VercelCore] | undefined>;