UNPKG

@simulacrum/github-api-simulator

Version:

Provides common functionality to frontend app and plugins.

63 lines 1.41 kB
import type { GitHubBlob } from "../store/entities.ts"; export declare const blobAsBase64: ({ blob, host, owner, repo, ref, }: { blob: GitHubBlob; host: string; owner: string; repo: string; ref: string; }) => { content: string; encoding: string; url: string; sha: string; size: number; node_id: string; }; export declare const gitTrees: ({ blobs, host, owner, repo, ref, }: { blobs: GitHubBlob[]; host: string; owner: string; repo: string; ref: string; }) => { sha: string; url: string; tree: { path: string; mode: string; type: string; size: number; sha: string; url: string; }[]; truncated: boolean; }; export declare const commitStatusResponse: ({ host, owner, repo, ref, }: { host: string; owner: string; repo: string; ref: string; }) => { state: string; statuses: never[]; sha: string; total_count: number; repository: { id: number; node_id: string; name: string; full_name: string; owner: { login: string; id: number; type: string; site_admin: boolean; }; private: boolean; description: string; fork: boolean; trees_url: string; archive_url: string; }; }; //# sourceMappingURL=utils.d.ts.map