import { UseQueryOptions } from '@tanstack/react-query'; import type { CertificateListResponseResponse } from '../responses/CertificateListResponseResponse'; import type { GetPathParamsType, ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetCertificatesAccountPathParams { } export interface GetCertificatesAccountQueryParams { search_term?: string; /** * @default 0 */ page?: number; /** * @default 20 */ limit?: number; sort?: 'created' | 'identifier' | 'name' | 'updated'; order?: 'ASC' | 'DESC'; /** * @default "false" */ include_all_available_at_scope?: boolean; } export interface GetCertificatesAccountHeaderParams { 'Harness-Account'?: string; } export type GetCertificatesAccountOKResponse = CertificateListResponseResponse; export type GetCertificatesAccountErrorResponse = unknown; export interface GetCertificatesOrgPathParams { org: string; } export interface GetCertificatesOrgQueryParams { search_term?: string; /** * @default 0 */ page?: number; /** * @default 20 */ limit?: number; sort?: 'created' | 'identifier' | 'name' | 'updated'; order?: 'ASC' | 'DESC'; /** * @default "false" */ include_all_available_at_scope?: boolean; } export interface GetCertificatesOrgHeaderParams { 'Harness-Account'?: string; } export type GetCertificatesOrgOKResponse = CertificateListResponseResponse; export type GetCertificatesOrgErrorResponse = unknown; export interface GetCertificatesProjectPathParams { org: string; project: string; } export interface GetCertificatesProjectQueryParams { search_term?: string; /** * @default 0 */ page?: number; /** * @default 20 */ limit?: number; sort?: 'created' | 'identifier' | 'name' | 'updated'; order?: 'ASC' | 'DESC'; /** * @default "false" */ include_all_available_at_scope?: boolean; } export interface GetCertificatesProjectHeaderParams { 'Harness-Account'?: string; } export type GetCertificatesProjectOKResponse = CertificateListResponseResponse; export type GetCertificatesProjectErrorResponse = unknown; export type GetCertificatesOKResponse = T extends GetCertificatesProjectPathParams ? ResponseWithPagination : T extends GetCertificatesOrgPathParams ? ResponseWithPagination : ResponseWithPagination; export type GetCertificatesErrorResponse = T extends GetCertificatesProjectPathParams ? GetCertificatesProjectErrorResponse : T extends GetCertificatesOrgPathParams ? GetCertificatesOrgErrorResponse : GetCertificatesAccountErrorResponse; export interface GetCertificatesProps extends Omit, 'url'> { pathParams: GetCertificatesAccountPathParams | GetCertificatesOrgPathParams | GetCertificatesProjectPathParams; } export declare function getCertificates(props: T): Promise>>; export declare function useGetCertificatesQuery(props: T, options?: Omit>, GetCertificatesErrorResponse>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult>, GetCertificatesErrorResponse>>;