1 | import { Store } from 'redux';
|
2 | import { State } from '../reducers';
|
3 | import { DragSource, DropTarget, SourceType, TargetType, Identifier, HandlerRegistry } from '../interfaces';
|
4 | export declare class HandlerRegistryImpl implements HandlerRegistry {
|
5 | private types;
|
6 | private dragSources;
|
7 | private dropTargets;
|
8 | private pinnedSourceId;
|
9 | private pinnedSource;
|
10 | private store;
|
11 | constructor(store: Store<State>);
|
12 | addSource(type: SourceType, source: DragSource): string;
|
13 | addTarget(type: TargetType, target: DropTarget): string;
|
14 | containsHandler(handler: DragSource | DropTarget): boolean;
|
15 | getSource(sourceId: string, includePinned?: boolean): DragSource;
|
16 | getTarget(targetId: string): DropTarget;
|
17 | getSourceType(sourceId: string): Identifier;
|
18 | getTargetType(targetId: string): Identifier | Identifier[];
|
19 | isSourceId(handlerId: string): boolean;
|
20 | isTargetId(handlerId: string): boolean;
|
21 | removeSource(sourceId: string): void;
|
22 | removeTarget(targetId: string): void;
|
23 | pinSource(sourceId: string): void;
|
24 | unpinSource(): void;
|
25 | private addHandler;
|
26 | }
|