UNPKG

@khulnasoft.com/dev-tools

Version:

Development tools for Khulnasoft CMS integration

38 lines (37 loc) 1.17 kB
import type { DevToolsSys } from "../types"; import type { CLIArgs } from "./index"; export interface CredentialsOptions { forceSpaceId?: string; khulnasoftPublicKey?: boolean; khulnasoftPrivateKey?: boolean; figmaAuth?: boolean; force?: boolean; } export interface FigmaAuth { access_token: string; oauth: boolean; } export interface KhulnasoftAuth { privateKey: string; spaceId: string; spaceName: string; userId: string; } export interface Credentials { figmaAuth?: FigmaAuth; khulnasoftPublicKey?: string; khulnasoftPrivateKey?: string; spaceName?: string; userId?: string; } export declare const isCI: (args: CLIArgs) => boolean; export interface Credentials { figmaAuth?: FigmaAuth; khulnasoftPublicKey?: string; khulnasoftPrivateKey?: string; spaceName?: string; userId?: string; } export declare const getCredentials: (sys: DevToolsSys, args: CLIArgs, opts: CredentialsOptions) => Promise<Credentials>; export declare function getFigmaAuth(): Promise<FigmaAuth>; export declare function getKhulnasoftAuth(sys: DevToolsSys, preferSpaceId?: string): Promise<KhulnasoftAuth>;