import { UseQueryOptions } from '@tanstack/react-query'; import type { ServiceDashboardListResponseResponse } from '../responses/ServiceDashboardListResponseResponse'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetDashboardServicesQueryPathParams { org: string; project: string; } export interface GetDashboardServicesQueryQueryParams { /** * @default 0 */ page?: number; /** * @default 100 */ size?: number; search_term?: string; sort?: 'created' | 'identifier' | 'name' | 'updated'; order?: 'ASC' | 'DESC'; filter_identifier?: string; service_identifiers?: string[]; service_names?: string[]; /** * @example "team:payments" */ tags?: string[]; service_types?: string[]; repo_name?: string; } export interface GetDashboardServicesQueryHeaderParams { 'Harness-Account'?: string; } export type GetDashboardServicesOkResponse = ResponseWithPagination; export type GetDashboardServicesErrorResponse = {}; export interface GetDashboardServicesProps extends GetDashboardServicesQueryPathParams, Omit, 'url'> { queryParams: GetDashboardServicesQueryQueryParams; } export declare function getDashboardServices(props: GetDashboardServicesProps): Promise; /** * Returns a paginated list of services with dashboard metrics including deployment types, creation timestamp, and last modified timestamp. */ export declare function useGetDashboardServicesQuery(props: GetDashboardServicesProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;