import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type NamespaceId = string | number;
export declare const SearchRepoQueryParamProvider: {
    readonly Github: "github";
    readonly GithubLimited: "github-limited";
    readonly GithubCustomHost: "github-custom-host";
    readonly Gitlab: "gitlab";
    readonly Bitbucket: "bitbucket";
    readonly CursorOrigin: "cursor-origin";
};
export type SearchRepoQueryParamProvider = ClosedEnum<typeof SearchRepoQueryParamProvider>;
export type SearchRepoRequest = {
    query?: string | undefined;
    namespaceId?: string | number | null | undefined;
    provider?: SearchRepoQueryParamProvider | undefined;
    installationId?: string | undefined;
    /**
     * The custom Git host if using a custom Git provider, like GitHub Enterprise Server
     */
    host?: string | undefined;
    /**
     * The Team identifier to perform the request on behalf of.
     */
    teamId?: string | undefined;
    /**
     * The Team slug to perform the request on behalf of.
     */
    slug?: string | undefined;
};
export declare const SearchRepoResponseBodyIntegrationsProvider: {
    readonly Bitbucket: "bitbucket";
    readonly CursorOrigin: "cursor-origin";
    readonly Github: "github";
    readonly GithubCustomHost: "github-custom-host";
    readonly GithubLimited: "github-limited";
    readonly Gitlab: "gitlab";
    readonly Vercel: "vercel";
};
export type SearchRepoResponseBodyIntegrationsProvider = ClosedEnum<typeof SearchRepoResponseBodyIntegrationsProvider>;
export type ResponseBodyNamespaceId = string | number;
export type ResponseBodyGitAccount = {
    provider: SearchRepoResponseBodyIntegrationsProvider;
    namespaceId: string | number | null;
};
export type ResponseBodyId = string | number;
export declare const SearchRepoResponseBodyIntegrationsResponseProvider: {
    readonly Bitbucket: "bitbucket";
    readonly CursorOrigin: "cursor-origin";
    readonly Github: "github";
    readonly GithubCustomHost: "github-custom-host";
    readonly GithubLimited: "github-limited";
    readonly Gitlab: "gitlab";
    readonly Vercel: "vercel";
};
export type SearchRepoResponseBodyIntegrationsResponseProvider = ClosedEnum<typeof SearchRepoResponseBodyIntegrationsResponseProvider>;
export type SearchRepoResponseBodyId = string | number;
export type SearchRepoResponseBodyOwner = {
    id: string | number;
    name: string;
};
export declare const SearchRepoResponseBodyOwnerType: {
    readonly Team: "team";
    readonly User: "user";
};
export type SearchRepoResponseBodyOwnerType = ClosedEnum<typeof SearchRepoResponseBodyOwnerType>;
export type ResponseBodyRepos = {
    id: string | number;
    provider: SearchRepoResponseBodyIntegrationsResponseProvider;
    url: string;
    name: string;
    slug: string;
    namespace: string;
    owner: SearchRepoResponseBodyOwner;
    ownerType: SearchRepoResponseBodyOwnerType;
    private: boolean;
    defaultBranch: string;
    updatedAt: number;
};
export type ResponseBody4 = {
    gitAccount: ResponseBodyGitAccount;
    repos: Array<ResponseBodyRepos>;
};
export type GitAccount = {
    provider: string;
    namespaceId: string | null;
};
export declare const SearchRepoResponseBodyProvider: {
    readonly CursorOrigin: "cursor-origin";
};
export type SearchRepoResponseBodyProvider = ClosedEnum<typeof SearchRepoResponseBodyProvider>;
export declare const ResponseBodyOwnerType: {
    readonly Team: "team";
    readonly User: "user";
};
export type ResponseBodyOwnerType = ClosedEnum<typeof ResponseBodyOwnerType>;
export type ResponseBodyOwner = {
    id: string;
    name: string;
};
export type Repos = {
    id: string;
    provider: SearchRepoResponseBodyProvider;
    url: string;
    name: string;
    slug: string;
    namespace: string;
    ownerType: ResponseBodyOwnerType;
    owner: ResponseBodyOwner;
    private: boolean;
    defaultBranch: string;
    updatedAt: number;
};
export type SearchRepoResponseBody3 = {
    gitAccount: GitAccount;
    repos: Array<Repos>;
};
export declare const ResponseBodyCode: {
    readonly InstallationNotFound: "installation_not_found";
};
export type ResponseBodyCode = ClosedEnum<typeof ResponseBodyCode>;
export type SearchRepoResponseBodyError = {
    code: ResponseBodyCode;
    message: string;
};
export type SearchRepoResponseBody2 = {
    error: SearchRepoResponseBodyError;
};
export type SearchRepoResponseBody1 = {};
export type SearchRepoResponseBody = SearchRepoResponseBody3 | ResponseBody4 | SearchRepoResponseBody2 | SearchRepoResponseBody1;
/** @internal */
export type NamespaceId$Outbound = string | number;
/** @internal */
export declare const NamespaceId$outboundSchema: z.ZodType<NamespaceId$Outbound, z.ZodTypeDef, NamespaceId>;
export declare function namespaceIdToJSON(namespaceId: NamespaceId): string;
/** @internal */
export declare const SearchRepoQueryParamProvider$outboundSchema: z.ZodNativeEnum<typeof SearchRepoQueryParamProvider>;
/** @internal */
export type SearchRepoRequest$Outbound = {
    query?: string | undefined;
    namespaceId?: string | number | null | undefined;
    provider?: string | undefined;
    installationId?: string | undefined;
    host?: string | undefined;
    teamId?: string | undefined;
    slug?: string | undefined;
};
/** @internal */
export declare const SearchRepoRequest$outboundSchema: z.ZodType<SearchRepoRequest$Outbound, z.ZodTypeDef, SearchRepoRequest>;
export declare function searchRepoRequestToJSON(searchRepoRequest: SearchRepoRequest): string;
/** @internal */
export declare const SearchRepoResponseBodyIntegrationsProvider$inboundSchema: z.ZodNativeEnum<typeof SearchRepoResponseBodyIntegrationsProvider>;
/** @internal */
export declare const ResponseBodyNamespaceId$inboundSchema: z.ZodType<ResponseBodyNamespaceId, z.ZodTypeDef, unknown>;
export declare function responseBodyNamespaceIdFromJSON(jsonString: string): SafeParseResult<ResponseBodyNamespaceId, SDKValidationError>;
/** @internal */
export declare const ResponseBodyGitAccount$inboundSchema: z.ZodType<ResponseBodyGitAccount, z.ZodTypeDef, unknown>;
export declare function responseBodyGitAccountFromJSON(jsonString: string): SafeParseResult<ResponseBodyGitAccount, SDKValidationError>;
/** @internal */
export declare const ResponseBodyId$inboundSchema: z.ZodType<ResponseBodyId, z.ZodTypeDef, unknown>;
export declare function responseBodyIdFromJSON(jsonString: string): SafeParseResult<ResponseBodyId, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBodyIntegrationsResponseProvider$inboundSchema: z.ZodNativeEnum<typeof SearchRepoResponseBodyIntegrationsResponseProvider>;
/** @internal */
export declare const SearchRepoResponseBodyId$inboundSchema: z.ZodType<SearchRepoResponseBodyId, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBodyIdFromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBodyId, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBodyOwner$inboundSchema: z.ZodType<SearchRepoResponseBodyOwner, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBodyOwnerFromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBodyOwner, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBodyOwnerType$inboundSchema: z.ZodNativeEnum<typeof SearchRepoResponseBodyOwnerType>;
/** @internal */
export declare const ResponseBodyRepos$inboundSchema: z.ZodType<ResponseBodyRepos, z.ZodTypeDef, unknown>;
export declare function responseBodyReposFromJSON(jsonString: string): SafeParseResult<ResponseBodyRepos, SDKValidationError>;
/** @internal */
export declare const ResponseBody4$inboundSchema: z.ZodType<ResponseBody4, z.ZodTypeDef, unknown>;
export declare function responseBody4FromJSON(jsonString: string): SafeParseResult<ResponseBody4, SDKValidationError>;
/** @internal */
export declare const GitAccount$inboundSchema: z.ZodType<GitAccount, z.ZodTypeDef, unknown>;
export declare function gitAccountFromJSON(jsonString: string): SafeParseResult<GitAccount, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBodyProvider$inboundSchema: z.ZodNativeEnum<typeof SearchRepoResponseBodyProvider>;
/** @internal */
export declare const ResponseBodyOwnerType$inboundSchema: z.ZodNativeEnum<typeof ResponseBodyOwnerType>;
/** @internal */
export declare const ResponseBodyOwner$inboundSchema: z.ZodType<ResponseBodyOwner, z.ZodTypeDef, unknown>;
export declare function responseBodyOwnerFromJSON(jsonString: string): SafeParseResult<ResponseBodyOwner, SDKValidationError>;
/** @internal */
export declare const Repos$inboundSchema: z.ZodType<Repos, z.ZodTypeDef, unknown>;
export declare function reposFromJSON(jsonString: string): SafeParseResult<Repos, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBody3$inboundSchema: z.ZodType<SearchRepoResponseBody3, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBody3FromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody3, SDKValidationError>;
/** @internal */
export declare const ResponseBodyCode$inboundSchema: z.ZodNativeEnum<typeof ResponseBodyCode>;
/** @internal */
export declare const SearchRepoResponseBodyError$inboundSchema: z.ZodType<SearchRepoResponseBodyError, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBodyErrorFromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBodyError, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBody2$inboundSchema: z.ZodType<SearchRepoResponseBody2, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBody2FromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody2, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBody1$inboundSchema: z.ZodType<SearchRepoResponseBody1, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBody1FromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody1, SDKValidationError>;
/** @internal */
export declare const SearchRepoResponseBody$inboundSchema: z.ZodType<SearchRepoResponseBody, z.ZodTypeDef, unknown>;
export declare function searchRepoResponseBodyFromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody, SDKValidationError>;
//# sourceMappingURL=searchrepoop.d.ts.map