import { ApiError, GitHubInstallationInfo, GitHubOrgInstallationInfo, UserData, WorkspaceData } from '../../../api'; import { BasePart, UiPartComponent, UiPartConfig } from '..'; import { TemplateResult } from '@blinkk/selective-edit'; import { EditorState } from '../../../state'; import { GitHubApi } from '../../../../server/gh/githubApi'; import { OnboardingBreadcrumbs } from '../onboarding'; import TimeAgo from 'javascript-time-ago'; export interface GitHubOnboardingPartConfig extends UiPartConfig { breadcrumbs: OnboardingBreadcrumbs; /** * State class for working with editor state. */ state: EditorState; } export declare class GitHubOnboardingPart extends BasePart implements UiPartComponent { config: GitHubOnboardingPartConfig; error?: ApiError; organizations?: Array; installation?: GitHubInstallationInfo; /** * Value to filter the list of results for. */ listFilter?: string; repositories?: Array; /** * Track the id that was used to load the repositories. * Reset the loaded repositories when the id does not match. * ex: on pop state. */ repositoriesId?: number; service: string; timeAgo: TimeAgo; users?: Array; workspaces?: Array; /** * Track the id that was used to load the workspaces. * Reset the loaded workspaces when the id does not match. * ex: on pop state. */ workspacesId?: string; constructor(config: GitHubOnboardingPartConfig); get api(): GitHubApi; classesForPart(): Record; generateUrl(organization?: string, repository?: string, workspace?: string): string; handleFilterInput(evt: Event): void; handlePopstate(evt: PopStateEvent): void; loadWorkspaces(): void; loadOrganizations(): void; loadRepositories(): void; template(): TemplateResult; templateFilter(): TemplateResult; templateHeader(title?: string): TemplateResult; templateHelp(message: TemplateResult): TemplateResult; templateLoadingStatus(message: TemplateResult): TemplateResult; templateLogin(): TemplateResult; templateOrganizations(): TemplateResult; templateRecentRepositories(filter?: string, maxCount?: number): TemplateResult; templateRepositories(): TemplateResult; templateSection(title?: string | TemplateResult, description?: string): TemplateResult; templateWorkspaces(): TemplateResult; }