import { UseQueryOptions } from '@tanstack/react-query'; import type { EnvironmentListResponseResponse } from '../responses/EnvironmentListResponseResponse'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetEnvironmentsQueryPathParams { org: string; project: string; } export interface GetEnvironmentsQueryQueryParams { /** * @default 0 */ page?: number; /** * @default 20 */ limit?: number; search_term?: string; environment_ids?: string[]; sort?: 'created' | 'identifier' | 'name' | 'updated'; is_access_list?: boolean; order?: 'ASC' | 'DESC'; } export interface GetEnvironmentsQueryHeaderParams { 'Harness-Account'?: string; } export type GetEnvironmentsOkResponse = ResponseWithPagination; export type GetEnvironmentsErrorResponse = unknown; export interface GetEnvironmentsProps extends GetEnvironmentsQueryPathParams, Omit, 'url'> { queryParams: GetEnvironmentsQueryQueryParams; } export declare function getEnvironments(props: GetEnvironmentsProps): Promise; /** * Returns a list of the enviornments for which you have view permissions in the given project. */ export declare function useGetEnvironmentsQuery(props: GetEnvironmentsProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;