UNPKG

@altostra/core

Version:

Core library for shared types and logic

18 lines (17 loc) 753 B
import type { Name } from "../../../common/Models/Name"; import { GitHubGitHost } from "../../../git-host/GitHubGitHost"; import { TemplatesProviderBase } from "../TemplatesProvider"; import { GITHUB_TEMPLATE_TYPE } from "./Common"; import { GithubTemplate } from "./GithubTemplate"; export interface GithubTemplatesProviderOptions { accountName?: Name; github?: GitHubGitHost; } export declare class GithubTemplatesProvider extends TemplatesProviderBase<GITHUB_TEMPLATE_TYPE, GithubTemplate> { private readonly _github; private _templates; constructor(options?: GitHubGitHost | GithubTemplatesProviderOptions); list(): Promise<string[]>; get(name: string): Promise<GithubTemplate>; private _validateTemplateExistence; }