/*! * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. */ import { base } from '../base'; import { Explorer_Class } from '../explorer'; import { FluentUITypes } from '@msrvida/fluentui-react-cdn-typings'; import { SandDance } from '@msrvida/sanddance-react'; import { SnapshotAction } from '../interfaces'; import { SnapshotEditor_Class } from './snapshotEditor'; import Snapshot = SandDance.types.Snapshot; export interface SnapshotListProps { getTopActions?: (snapshots: Snapshot[]) => FluentUITypes.IContextualMenuItem[]; getActions?: (snapshot: Snapshot, snapshotIndex: number) => SnapshotAction[]; getChildren?: (snapshots: Snapshot[]) => React.ReactNode; } export interface Props extends SnapshotListProps { explorer: Explorer_Class; editor: SnapshotEditor_Class; snapshots: Snapshot[]; selectedSnapshotIndex: number; onClearSnapshots: () => void; onWriteSnapshot: (snapshot: Snapshot, editIndex: number) => void; onRemoveSnapshot: (i: number) => void; onMoveUp: (i: number) => void; onMoveDown: (i: number) => void; onSnapshotClick?: (snapshot: Snapshot, index: number) => void; themePalette: Partial; } export interface Confirmation { buttonText: string; handler: () => void; } export interface State extends Snapshot { confirmation: Confirmation; } export declare const Snapshots: typeof Snapshots_Class; export declare class Snapshots_Class extends base.react.Component { }