import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import * as errors from "../models/errors/index.js"; import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import * as operations from "../models/operations/index.js"; import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js"; import { buildReposGetQuery, prefetchReposGet, queryKeyReposGet, ReposGetQueryData } from "./reposGet.core.js"; export { buildReposGetQuery, prefetchReposGet, queryKeyReposGet, type ReposGetQueryData, }; export type ReposGetQueryError = errors.RepoError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError; /** * Get a repository * * @remarks * Reads a single repository after the org+role access check (org * owner/admin of the repository's org only). */ export declare function useReposGet(request: operations.GetRepoRequest, options?: QueryHookOptions): UseQueryResult; /** * Get a repository * * @remarks * Reads a single repository after the org+role access check (org * owner/admin of the repository's org only). */ export declare function useReposGetSuspense(request: operations.GetRepoRequest, options?: SuspenseQueryHookOptions): UseSuspenseQueryResult; export declare function setReposGetData(client: QueryClient, queryKeyBase: [ org: string, name: string, parameters: { xOnBehalfOf?: string | undefined; } ], data: ReposGetQueryData): ReposGetQueryData | undefined; export declare function invalidateReposGet(client: QueryClient, queryKeyBase: TupleToPrefixes<[ org: string, name: string, parameters: { xOnBehalfOf?: string | undefined; } ]>, filters?: Omit): Promise; export declare function invalidateAllReposGet(client: QueryClient, filters?: Omit): Promise; //# sourceMappingURL=reposGet.d.ts.map