import type { BaseParams, BrandedHash } from '@ariestools/sdk'; import { Base } from '@ariestools/sdk'; import type { Payload } from '@xyo-network/sdk-protocol'; import type { SentinelAutomationPayload, SentinelInstance } from '../sentinel-model/index.js'; export type OnSentinelRunnerTriggerResult = (result: Payload[]) => void; export interface SentinelRunnerParams extends BaseParams { automations?: SentinelAutomationPayload[]; onTriggerResult?: OnSentinelRunnerTriggerResult; sentinel: SentinelInstance; } export declare class SentinelRunner extends Base { protected _automations: Record; protected onTriggerResult: OnSentinelRunnerTriggerResult | undefined; protected sentinel: SentinelInstance; protected timeoutId?: ReturnType | string | number; constructor(params: SentinelRunnerParams); get automations(): Record; private get next(); add(automation: SentinelAutomationPayload, restart?: boolean): Promise; find(hash: string): [string, SentinelAutomationPayload] | undefined; remove(hash: string, restart?: boolean): void; removeAll(): void; restart(): void; start(): void; startHandler(): void; stop(): void; update(hash: string, automation: SentinelAutomationPayload, restart?: boolean): Promise; private trigger; } //# sourceMappingURL=SentinelRunner.d.ts.map