export type FetchFn = (url: string, init: { method: string; headers: Record; signal: AbortSignal; }) => Promise; export interface ProjectLookupResult { projectId: string; orgSlug: string | null; repoOwner: string; repoName: string; prodBranch: string | null; } export interface LookupArgs { url: string; token: string; repoOwner: string; repoName: string; fetchFn?: FetchFn; } export type LookupOutcome = { kind: "found"; project: ProjectLookupResult; } | { kind: "not-found"; } | { kind: "unauthorized"; } | { kind: "error"; reason: string; }; /** * Look up the project linked to `repoOwner/repoName` for the given token. */ export declare function lookupProject(args: LookupArgs): Promise; //# sourceMappingURL=project-lookup.d.ts.map