import { BusEventWithPayload } from '@grafana/data'; /** * Payload for the InvestigationCreatedEvent */ export interface InvestigationCreatedPayload { /** The ID of the newly created investigation */ investigationId: string; } /** * Event emitted when an investigation is created. * External integrations can subscribe to this event to react to new investigations. */ export declare class InvestigationCreatedEvent extends BusEventWithPayload { static type: string; } /** * Emit an InvestigationCreatedEvent to notify subscribers that a new investigation was created. * * @param investigationId - The ID of the newly created investigation */ export declare function emitInvestigationCreated(investigationId: string): void; /** * Subscribe to investigation created events. * * @param callback - Function to call when an investigation is created * @returns Unsubscribe function to stop listening for events * * @example * ```typescript * import { onInvestigationCreated } from '@grafana/assistant'; * * const unsubscribe = onInvestigationCreated((payload) => { * console.log('Investigation created:', payload.investigationId); * }); * * // Later, when you want to stop listening * unsubscribe(); * ``` */ export declare function onInvestigationCreated(callback: (payload: InvestigationCreatedPayload) => void): () => void; //# sourceMappingURL=investigations.d.ts.map