export type HeadersInit = Record; export type CiStatus = "pending" | "success" | "error" | "failure" | ""; export interface GiteaConfig { protocol?: string; domain?: string; apiPrefix?: string; token?: string; } export interface Commit { sha: string; } export interface Tag { name: string; message: string; id: string; commit: Commit; } export interface Status { sha: string; state: CiStatus; } interface Hook { active: boolean; id: number; } export declare class Gitea { private _protocol; private _domain; private _apiPrefix; private _token; constructor(options?: GiteaConfig); setToken(token: string | null | undefined): void; getHomepage(): string; getUrlPrefix(): string; getRepo(...args: string[]): Promise; getCommits(...args: string[]): Promise; getStatus(...args: string[]): Promise; getTags(...args: string[]): Promise; getHooks(...args: string[]): Promise; sendTestWebhook(...args: string[]): Promise; waitForBuild(lastHash: string, ...args: string[]): Promise; } export default Gitea;