import { Context, Effect, Layer } from "effect"; import { GitHubCliMissing, GitHubCliUnauthenticated } from "../domain/errors.ts"; import { GitHubCli } from "./gh.ts"; export type GitHubSuggestionKind = "repo" | "org"; export interface GitHubSuggestion { readonly detail: string; readonly kind: GitHubSuggestionKind; readonly label: string; readonly value: string; } export interface GitHubSearchParams { readonly limit?: number; readonly query: string; } export declare const searchGitHubSuggestions: ({ limit, query }: GitHubSearchParams) => Effect.Effect; export interface GitHubSearchShape { readonly suggestions: (params: GitHubSearchParams) => Effect.Effect, GitHubCliMissing | GitHubCliUnauthenticated, GitHubCli>; } declare const GitHubSearch_base: Context.ServiceClass; export declare class GitHubSearch extends GitHubSearch_base { } export declare const GitHubSearchLive: Layer.Layer; export {}; //# sourceMappingURL=github-search.d.ts.map