import { GraphQLClient } from 'graphql-request'; import { ListRuleInstancesResponse, ListRuleInstancesFilters, QuestionRuleInstance, InlineQuestionRuleInstance, CreateInlineQuestionRuleInstanceInput, UpdateInlineQuestionRuleInstanceInput, ListRuleEvaluationsResponse, ListRuleEvaluationsFilters, RuleEvaluation, RuleEvaluationDetailsResponse, RuleEvaluationDetailsInput } from '../../types/jupiterone.js'; export declare class RuleService { private client; constructor(client: GraphQLClient); /** * Construct rule URL based on subdomain */ constructRuleUrl(ruleId: string, subdomain?: string): string; /** * List rule instances using the new GraphQL query */ listRuleInstances(limit?: number, cursor?: string, filters?: ListRuleInstancesFilters): Promise; /** * Get all rule instances by paginating through all pages */ getAllRuleInstances(filters?: ListRuleInstancesFilters): Promise; /** * Create an inline question rule instance */ createInlineQuestionRuleInstance(instance: CreateInlineQuestionRuleInstanceInput): Promise; /** * Update an inline question rule instance */ updateInlineQuestionRuleInstance(instance: UpdateInlineQuestionRuleInstanceInput): Promise; /** * Trigger an alert rule on demand */ evaluateRuleInstance(id: string): Promise<{ id: string; __typename: string; }>; /** * Delete a rule instance. Accepts any rule id — inline-question or referenced-question. * * Alerts the rule has already raised are not dismissed by the delete; they stay active. * * The payload scalars are nullable because they are API passthrough and the advertised output * schema admits null for both — the typing has to agree, or callers get a false guarantee * (same shape as `DashboardService.deleteDashboard`). */ deleteRuleInstance(id: string): Promise<{ id: string | null; __typename: string | null; }>; /** * List rule evaluations for a specific rule instance */ listRuleEvaluations(filters: ListRuleEvaluationsFilters): Promise; /** * Get all rule evaluations for a specific rule instance by paginating through all pages */ getAllRuleEvaluations(filters: Omit): Promise; /** * Get detailed information about a specific rule evaluation */ getRuleEvaluationDetails(input: RuleEvaluationDetailsInput): Promise; /** * Get a download URL for raw data associated with a rule evaluation */ getRawDataDownloadUrl(rawDataKey: string): Promise; getRawDataResults(rawDataKey: string): Promise; } //# sourceMappingURL=rule-service.d.ts.map