ketcher-react
Version:
Web-based molecule sketcher
47 lines (46 loc) • 2.06 kB
TypeScript
export default Save;
declare const Save: import("react-redux").ConnectedComponent<typeof SaveDialog, import("react-redux").Omit<any, "server" | "options" | "bondThickness" | "formState" | "struct" | "editor" | "checkState" | "onCheck" | "moleculeErrors" | "ignoreChiralFlag" | "onTmplSave" | "onResetForm">>;
declare class SaveDialog extends Component<any, any, any> {
static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
constructor(props: any);
state: {
disableControls: boolean;
imageFormat: string;
tabIndex: number;
isLoading: boolean;
};
isRxn: any;
textAreaRef: import("react").RefObject<any>;
saveSchema: {
title: string;
type: string;
properties: {
filename: {
title: string;
type: string;
maxLength: number;
pattern: string;
invalidMessage: (res: any) => "Filename should contain at least one character" | "Filename is too long" | "A filename cannot contain characters: \\ / : * ? \" < > | and cannot start with '.'";
};
format: {
title: string;
enum: string[];
enumNames: any[];
};
};
};
componentDidMount(): void;
isImageFormat: (format: any) => boolean;
isBinaryCdxFormat: (format: any) => boolean;
showStructWarningMessage: (format: any) => boolean;
changeType: (type: any) => any;
changeTab: (index: any) => void;
getWarnings: (format: any) => any[];
renderForm: () => import("react/jsx-runtime").JSX.Element;
handleCopy: (event: any) => void;
renderSaveFile: () => import("react/jsx-runtime").JSX.Element;
renderWarnings: () => import("react/jsx-runtime").JSX.Element | null;
getButtons: () => import("react/jsx-runtime").JSX.Element[];
render(): import("react/jsx-runtime").JSX.Element;
}
import { Component } from "react";