import { ComponentEvent, LocalGitRepoState, SuperblocksResourceType } from "@superblocksteam/util"; import { PushApiWithCommitConfig, PushMultiPageApplicationWithCommitConfig } from "./client"; import { FeatureFlags } from "./flag"; import { UserMeDto, ViewMode } from "./types"; export * from "./errors"; export declare class SuperblocksSdk { token: string; superblocksBaseUrl: string; cliVersion: string; constructor(accessToken: string, superblocksBaseUrl: string, cliVersion: string); getFeatureFlagsForCurrentUser(): Promise; getFeatureFlagsForUser(user: UserMeDto): FeatureFlags; fetchApplication({ applicationId, branch, headers, viewMode, skipSigningVerification, }: { applicationId: string; branch?: string; headers?: Record; viewMode?: ViewMode; skipSigningVerification?: boolean; }): Promise; fetchApplicationBranches(applicationId: string, headers?: {}): Promise; fetchApplicationWithComponents({ applicationId, branch, headers, viewMode, commitId, skipSigningVerification, }: { applicationId: string; branch: string; headers?: Record; viewMode?: ViewMode; commitId?: string; skipSigningVerification?: boolean; }): Promise<(import("./client").MultiPageApplicationWrapper & { componentFiles: any; }) | undefined>; fetchApplicationCommits({ applicationId, branch, headers, limit, offset, }: { applicationId: string; branch: string; headers?: Record; limit?: number; offset?: number; }): Promise; fetchApiCommits({ apiId, branch, headers, limit, offset, }: { apiId: string; branch: string; headers?: Record; limit?: number; offset?: number; }): Promise; fetchApplications(headers?: Record): Promise; fetchApi({ apiId, branch, viewMode, commitId, skipSigningVerification, }: { apiId: string; viewMode?: ViewMode; branch?: string; commitId?: string; skipSigningVerification?: boolean; }): Promise; fetchApis(): Promise; validateGitSetup(resourceId: string, resourceType: SuperblocksResourceType, event: ComponentEvent, localGitRepoState: LocalGitRepoState, injectedHeaders?: Record): Promise<{ branchName: string | null; }>; registerComponents(applicationId: string, componentConfigs: Record, branch: string | null, injectedHeaders: Record): Promise; uploadComponents(applicationId: string, componentConfigs: Record, files: string[], branch: string | null): Promise; fetchCurrentUser(): Promise; pushApplication({ applicationId, applicationConfig, branch, headers, }: { applicationId: string; applicationConfig: PushMultiPageApplicationWithCommitConfig; branch: string; headers?: Record; }): Promise; pushApi({ apiId, apiConfig, branch, headers, }: { apiId: string; apiConfig: PushApiWithCommitConfig; branch: string; headers?: Record; }): Promise<{ commitId: string; } | { updated: Date; } | undefined>; deployApplication(applicationId: string, commitId?: string): Promise; deployApi(apiId: string, commitId?: string): Promise; }