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 GetAccountScopedEnvironmentsQueryQueryParams { /** * @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 GetAccountScopedEnvironmentsQueryHeaderParams { 'Harness-Account'?: string; } export type GetAccountScopedEnvironmentsOkResponse = ResponseWithPagination; export type GetAccountScopedEnvironmentsErrorResponse = unknown; export interface GetAccountScopedEnvironmentsProps extends Omit, 'url'> { queryParams: GetAccountScopedEnvironmentsQueryQueryParams; } export declare function getAccountScopedEnvironments(props: GetAccountScopedEnvironmentsProps): Promise; /** * Returns a list of the account scoped environments for which you have view permissions in the given account. */ export declare function useGetAccountScopedEnvironmentsQuery(props: GetAccountScopedEnvironmentsProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;