@hmcts/media-viewer
Version:
32 lines • 1.26 kB
TypeScript
import * as fromRedaction from '../actions/redaction.actions';
import * as fromAnnotations from '../actions/annotation.actions';
import { SelectionAnnotation } from '../../annotations/models/event-select.model';
import { Redaction } from '../../redaction/services/redaction.model';
export interface RedactionState {
redactionEntities: {
[id: string]: Redaction;
};
redactionPageEntities: {
[id: string]: any;
};
selectedRedaction: SelectionAnnotation | {};
redactedDocumentInfo: {
blob: Blob;
filename: string;
};
documentId: string;
}
export declare const initialRedactionState: RedactionState;
export declare function redactionReducer(state: RedactionState, action: fromRedaction.RedactionActions | fromAnnotations.AnnotationsActions): RedactionState;
export declare const getRedactionEnt: (state: RedactionState) => {
[id: string]: Redaction;
};
export declare const getPageEnt: (state: RedactionState) => {
[id: string]: any;
};
export declare const getSelectedRedaction: (state: RedactionState) => {} | SelectionAnnotation;
export declare const getRedactedDocInfo: (state: RedactionState) => {
blob: Blob;
filename: string;
};
//# sourceMappingURL=redaction.reducer.d.ts.map