import { UseQueryOptions } from '@tanstack/react-query'; import type { ListGitXRateLimitsResponseResponse } from '../responses/ListGitXRateLimitsResponseResponse'; import type { GitXRateLimitProvider } from '../schemas/GitXRateLimitProvider'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface ListGitxRateLimitsQueryQueryParams { /** * @default 0 */ page?: number; /** * @default 20 */ limit?: number; connectorId?: string; provider?: GitXRateLimitProvider; } export interface ListGitxRateLimitsQueryHeaderParams { 'Harness-Account'?: string; } export type ListGitxRateLimitsOkResponse = ResponseWithPagination; export type ListGitxRateLimitsErrorResponse = unknown; export interface ListGitxRateLimitsProps extends Omit, 'url'> { queryParams: ListGitxRateLimitsQueryQueryParams; } export declare function listGitxRateLimits(props: ListGitxRateLimitsProps): Promise; /** * Returns the latest known SCM rate-limit consumption per (connector, provider, bucket) for the requesting account. When connectorId is omitted, returns snapshots across all connectors in the account; when provided, restricts to that connector. When provider is omitted, includes all providers. */ export declare function useListGitxRateLimitsQuery(props: ListGitxRateLimitsProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;