import { type dh } from '@deephaven/jsapi-types'; import type { PanelId } from '@deephaven/dashboard'; import type { WidgetId } from './panels'; export type FilterColumnSourceId = PanelId | WidgetId; export type FilterColumn = { name: string; type: string; }; export type FilterChangeEvent = FilterColumn & { value: string; timestamp: number; excludePanelIds?: string[]; }; /** * Listen for filter column changes * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the columns * @param columns The columns available for filtering or null to remove the filter for the sourceId */ export declare const listenForFilterColumnsChanged: import("@deephaven/golden-layout").EventListenFunction<[sourceId: FilterColumnSourceId, columns: readonly { name: string; type: string; }[] | null]>; /** * Emit a filter columns changed event * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the columns * @param columns The columns available for filtering or null to remove the filter for the sourceId */ export declare const emitFilterColumnsChanged: import("@deephaven/golden-layout").EventEmitFunction<[sourceId: FilterColumnSourceId, columns: readonly { name: string; type: string; }[] | null]>; /** * Use a filter columns change event listener * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the columns * @param columns The columns available for filtering or null to remove the filter for the sourceId */ export declare const useFilterColumnsChangedListener: import("@deephaven/golden-layout").EventListenerHook<[sourceId: FilterColumnSourceId, columns: readonly { name: string; type: string; }[] | null]>; /** * Listen for filter table changes * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the table * @param table The table available for filtering or null to remove the table for the sourceId */ export declare const listenForFilterTableChanged: import("@deephaven/golden-layout").EventListenFunction<[sourceId: FilterColumnSourceId, table: dh.Table | null]>; /** * Emit a filter table changed event * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the table * @param table The table available for filtering or null to remove the table for the sourceId */ export declare const emitFilterTableChanged: import("@deephaven/golden-layout").EventEmitFunction<[sourceId: FilterColumnSourceId, table: dh.Table | null]>; /** * Use a filter table change event listener * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the table * @param table The table available for filtering or null to remove the table for the sourceId */ export declare const useFilterTableChangedListener: import("@deephaven/golden-layout").EventListenerHook<[sourceId: FilterColumnSourceId, table: dh.Table | null]>; /** * Listen for filter changes * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the filter * @param filterChange The filter change event or null to remove the filter for the sourceId */ export declare const listenForFilterChanged: import("@deephaven/golden-layout").EventListenFunction<[sourceId: FilterColumnSourceId, filterChange: FilterChangeEvent | FilterChangeEvent[] | null]>; /** * Emit a filter change event * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the filter * @param filterChange The filter change event or null to remove the filter for the sourceId */ export declare const emitFilterChanged: import("@deephaven/golden-layout").EventEmitFunction<[sourceId: FilterColumnSourceId, filterChange: FilterChangeEvent | FilterChangeEvent[] | null]>; /** * Use a filter change event listener * @param eventEmitter The event emitter to emit the event on * @param sourceId The source ID for the filter * @param filterChange The filter change event or null to remove the filter for the sourceId */ export declare const useFilterChangedListener: import("@deephaven/golden-layout").EventListenerHook<[sourceId: FilterColumnSourceId, filterChange: FilterChangeEvent | FilterChangeEvent[] | null]>; //# sourceMappingURL=FilterEvents.d.ts.map