UNPKG

@beefree.io/sdk

Version:
43 lines (42 loc) 2.49 kB
import { IBeeConfig, IEntityContentJson, IBeeOptions, ILoadConfig, ILoadStageMode, LoadWorkspaceOptions, IToken, BeeSaveOptions, ILanguage, IBeeConfigFileManager, ExecCommand, ExecCommands, IExecCommandOptions, ITemplateJson, SaveResponse, SaveAsTemplateResponse, SDKOptions, LoadConfigOptions, ITemplateTranslationData, IMcpSessionData } from './types/bee'; import * as beeTypes from './types/bee'; declare class Bee { token: IToken; instance: any; wrapperInfo?: SDKOptions['wrapperInfo']; constructor(token?: IToken, options?: SDKOptions); bee: (bee: any) => void; UNSAFE_getToken: (clientId: string, clientSecret: string, uid: string, options?: SDKOptions) => Promise<IToken>; start: (config: IBeeConfig, template: IEntityContentJson | object, bucketDir?: string, options?: IBeeOptions) => Promise<unknown>; startFileManager: (config: IBeeConfigFileManager, bucketDir?: string, options?: IBeeOptions) => Promise<unknown>; join: (config: IBeeConfig, sessionId: string, bucketDir?: string) => Promise<unknown>; executeAction: <A = void>(action: string, param?: {}, options?: {}) => A; executeGetConfigAction: () => IBeeConfig; load: (template: IEntityContentJson) => void; loadRows: () => void; save: (options?: BeeSaveOptions) => Promise<SaveResponse>; saveAsTemplate: () => Promise<SaveAsTemplateResponse>; send: (args?: ILanguage) => void; preview: () => void; toggleStructure: () => void; togglePreview: () => void; toggleComments: () => void; saveRow: () => void; toggleMergeTagsPreview: () => void; showComment: (comment: any) => void; reload: (template: IEntityContentJson, options?: IBeeOptions) => void; loadWorkspace: (type: LoadWorkspaceOptions) => void; loadStageMode: (args: ILoadStageMode) => void; loadConfig: (args: ILoadConfig, options?: LoadConfigOptions) => Promise<IBeeConfig>; updateToken: (updateTokenArgs: IToken) => void; getConfig: () => IBeeConfig; switchTemplateLanguage: (args: ILanguage) => void; switchPreview: (args?: ILanguage) => void; execCommand: (command: ExecCommands, options?: IExecCommandOptions) => ExecCommand; getTemplateJson: () => Promise<ITemplateJson>; translateTemplate: (args: ILanguage) => Promise<ITemplateTranslationData>; resetTemplateTranslation: (args: ILanguage) => Promise<ITemplateTranslationData>; startMcpSession: () => Promise<IMcpSessionData>; } export default Bee; export { beeTypes };