import { CSSProperties, ReactNode } from "react";
import { IconName } from "@cocalc/frontend/components/icon";
interface Options {
    onSave?: Function;
    noSave?: boolean;
}
export default function useEditTable<T>(query: object, options?: Options): {
    edited: T | undefined;
    original: T | undefined;
    Save: () => JSX.Element | null;
    setEdited: (update: any, path?: string | undefined) => void;
    EditBoolean: ({ path, title, desc, label, icon, }: {
        path: string;
        title?: string | undefined;
        desc?: ReactNode;
        label?: ReactNode;
        icon?: "map" | "python" | "octave" | "header" | "battery-full" | "battery-three-quarters" | "battery-quarter" | "battery-empty" | "graduation-cap" | "terminal" | "replace" | "search" | "repeat" | "bold" | "link" | "compress" | "users" | "info" | "stop" | "file-archive" | "download" | "paper-plane" | "move" | "gears" | "save" | "times-rectangle" | "flash" | "hand-stop" | "run" | "settings" | "image" | "bug" | "user" | "text" | "comment" | "file" | "database" | "table" | "list" | "key" | "audio" | "code" | "circle" | "mask" | "ellipsis" | "clone" | "layout" | "copy" | "italic" | "underline" | "spinner" | "tab" | "square" | "group" | "note" | "sync" | "warning" | "unlink" | "r" | "markdown" | "tex" | "edit" | "julia" | "align-justify" | "battery-half" | "bars" | "blog" | "briefcase" | "brush" | "bullhorn" | "calendar-week" | "calendar-check" | "calendar-times" | "cc-discover" | "cc-mastercard" | "cc-visa" | "cc-stripe" | "clipboard" | "clipboard-check" | "cocalc-ring" | "colors" | "csv" | "cube" | "discord" | "docker" | "dot-circle" | "envelope" | "exchange" | "firefox" | "flow-chart" | "font" | "frame" | "gavel" | "git-square" | "graph" | "grass" | "hand" | "heart" | "horizontal-split" | "icons" | "indent" | "inkscape" | "ipynb" | "js-square" | "keyboard" | "libreoffice" | "life-ring" | "linux" | "magic" | "microchip" | "money-check" | "mousepointer" | "node-js" | "outdent" | "paste" | "pen" | "plus-one" | "qgis" | "quote-left" | "racket" | "sagemath" | "sagemath-bold" | "sagemath-file" | "scheme" | "sort-amount-up" | "square-root-alt" | "store" | "subscript" | "sun" | "superscript" | "tasks" | "text1" | "tex-file" | "thumbs-down" | "thumbs-up" | "toggle-off" | "toggle-on" | "ungroup" | "user-secret" | "user-check" | "user-slash" | "vertical-split" | "vim" | "vscode" | "window-maximize" | "wrench" | "address-card" | "aim" | "align-left" | "align-center" | "align-right" | "angle-double-left" | "angle-double-right" | "angle-down" | "angle-right" | "arrow-circle-o-left" | "arrow-circle-down" | "arrow-circle-up" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "atom" | "backward" | "ban" | "bell" | "bell-o" | "bolt" | "book" | "calculator" | "calendar" | "camera" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "caret-square-left" | "caret-square-right" | "areaChart" | "check" | "check-circle" | "check-square" | "check-square-o" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-circle-right" | "chevron-up" | "circle-notch" | "clock" | "close-circle-two-tone" | "cloud" | "cloud-download" | "cloud-download-alt" | "cloud-upload" | "code-outlined" | "CodeOutlined" | "coffee" | "cog" | "cogs" | "ColumnHeightOutlined" | "ColumnWidthOutlined" | "comments" | "compass" | "credit-card" | "cut" | "dashboard" | "dedicated" | "desktop" | "eraser" | "exclamation-circle" | "exclamation-triangle" | "expand" | "external-link" | "eye" | "eye-slash" | "facebook" | "file-alt" | "file-code" | "file-image" | "file-pdf" | "file-zip" | "files" | "file-export" | "fire" | "folder" | "folder-open" | "font-size" | "forward" | "frown" | "FundProjectionScreenOutlined" | "gear" | "github" | "git" | "global" | "emacs" | "google" | "hdd" | "highlighter" | "history" | "home" | "hourglass-half" | "html5" | "info-circle" | "jupyter" | "laptop" | "skull-crossbones" | "life-saver" | "lightbulb" | "line-chart" | "list-ul" | "list-alt" | "list-ol" | "lock-open" | "lock" | "mail" | "medkit" | "meh" | "minus-circle" | "minus-square" | "money" | "arrows" | "network-wired" | "pause" | "pencil" | "pencil-alt" | "percentage" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-circle-o" | "plus-square" | "plus-square-o" | "PoweroffOutlined" | "print" | "question-circle" | "redo" | "refresh" | "reload" | "remove" | "retweet" | "robot" | "rocket" | "scissors" | "search-minus" | "search-plus" | "select-outlined" | "server" | "sign-in" | "sign-out-alt" | "sitemap" | "share-square" | "shopping-cart" | "smile" | "square-o" | "star-filled" | "star" | "step-backward" | "step-forward" | "stopwatch" | "strikethrough" | "support" | "sync-alt" | "tachometer-alt" | "text-height" | "times" | "times-circle" | "trash" | "twitter" | "undo" | "swap" | "upload" | "UserAddOutlined" | "user-plus" | "user-times" | "video-camera" | "wallet" | "wifi" | "window-restore" | undefined;
    }) => JSX.Element;
    EditNumber: (() => null) | (({ path, title, desc, units, min, max, icon, }: {
        path: string;
        title?: string | undefined;
        desc?: ReactNode;
        units?: string | undefined;
        min: number;
        max: number;
        icon?: "map" | "python" | "octave" | "header" | "battery-full" | "battery-three-quarters" | "battery-quarter" | "battery-empty" | "graduation-cap" | "terminal" | "replace" | "search" | "repeat" | "bold" | "link" | "compress" | "users" | "info" | "stop" | "file-archive" | "download" | "paper-plane" | "move" | "gears" | "save" | "times-rectangle" | "flash" | "hand-stop" | "run" | "settings" | "image" | "bug" | "user" | "text" | "comment" | "file" | "database" | "table" | "list" | "key" | "audio" | "code" | "circle" | "mask" | "ellipsis" | "clone" | "layout" | "copy" | "italic" | "underline" | "spinner" | "tab" | "square" | "group" | "note" | "sync" | "warning" | "unlink" | "r" | "markdown" | "tex" | "edit" | "julia" | "align-justify" | "battery-half" | "bars" | "blog" | "briefcase" | "brush" | "bullhorn" | "calendar-week" | "calendar-check" | "calendar-times" | "cc-discover" | "cc-mastercard" | "cc-visa" | "cc-stripe" | "clipboard" | "clipboard-check" | "cocalc-ring" | "colors" | "csv" | "cube" | "discord" | "docker" | "dot-circle" | "envelope" | "exchange" | "firefox" | "flow-chart" | "font" | "frame" | "gavel" | "git-square" | "graph" | "grass" | "hand" | "heart" | "horizontal-split" | "icons" | "indent" | "inkscape" | "ipynb" | "js-square" | "keyboard" | "libreoffice" | "life-ring" | "linux" | "magic" | "microchip" | "money-check" | "mousepointer" | "node-js" | "outdent" | "paste" | "pen" | "plus-one" | "qgis" | "quote-left" | "racket" | "sagemath" | "sagemath-bold" | "sagemath-file" | "scheme" | "sort-amount-up" | "square-root-alt" | "store" | "subscript" | "sun" | "superscript" | "tasks" | "text1" | "tex-file" | "thumbs-down" | "thumbs-up" | "toggle-off" | "toggle-on" | "ungroup" | "user-secret" | "user-check" | "user-slash" | "vertical-split" | "vim" | "vscode" | "window-maximize" | "wrench" | "address-card" | "aim" | "align-left" | "align-center" | "align-right" | "angle-double-left" | "angle-double-right" | "angle-down" | "angle-right" | "arrow-circle-o-left" | "arrow-circle-down" | "arrow-circle-up" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "atom" | "backward" | "ban" | "bell" | "bell-o" | "bolt" | "book" | "calculator" | "calendar" | "camera" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "caret-square-left" | "caret-square-right" | "areaChart" | "check" | "check-circle" | "check-square" | "check-square-o" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-circle-right" | "chevron-up" | "circle-notch" | "clock" | "close-circle-two-tone" | "cloud" | "cloud-download" | "cloud-download-alt" | "cloud-upload" | "code-outlined" | "CodeOutlined" | "coffee" | "cog" | "cogs" | "ColumnHeightOutlined" | "ColumnWidthOutlined" | "comments" | "compass" | "credit-card" | "cut" | "dashboard" | "dedicated" | "desktop" | "eraser" | "exclamation-circle" | "exclamation-triangle" | "expand" | "external-link" | "eye" | "eye-slash" | "facebook" | "file-alt" | "file-code" | "file-image" | "file-pdf" | "file-zip" | "files" | "file-export" | "fire" | "folder" | "folder-open" | "font-size" | "forward" | "frown" | "FundProjectionScreenOutlined" | "gear" | "github" | "git" | "global" | "emacs" | "google" | "hdd" | "highlighter" | "history" | "home" | "hourglass-half" | "html5" | "info-circle" | "jupyter" | "laptop" | "skull-crossbones" | "life-saver" | "lightbulb" | "line-chart" | "list-ul" | "list-alt" | "list-ol" | "lock-open" | "lock" | "mail" | "medkit" | "meh" | "minus-circle" | "minus-square" | "money" | "arrows" | "network-wired" | "pause" | "pencil" | "pencil-alt" | "percentage" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-circle-o" | "plus-square" | "plus-square-o" | "PoweroffOutlined" | "print" | "question-circle" | "redo" | "refresh" | "reload" | "remove" | "retweet" | "robot" | "rocket" | "scissors" | "search-minus" | "search-plus" | "select-outlined" | "server" | "sign-in" | "sign-out-alt" | "sitemap" | "share-square" | "shopping-cart" | "smile" | "square-o" | "star-filled" | "star" | "step-backward" | "step-forward" | "stopwatch" | "strikethrough" | "support" | "sync-alt" | "tachometer-alt" | "text-height" | "times" | "times-circle" | "trash" | "twitter" | "undo" | "swap" | "upload" | "UserAddOutlined" | "user-plus" | "user-times" | "video-camera" | "wallet" | "wifi" | "window-restore" | undefined;
    }) => JSX.Element);
    EditSelect: (() => null) | (({ path, title, desc, icon, options, style, }: {
        path: string;
        title?: string | undefined;
        desc?: ReactNode;
        icon?: "map" | "python" | "octave" | "header" | "battery-full" | "battery-three-quarters" | "battery-quarter" | "battery-empty" | "graduation-cap" | "terminal" | "replace" | "search" | "repeat" | "bold" | "link" | "compress" | "users" | "info" | "stop" | "file-archive" | "download" | "paper-plane" | "move" | "gears" | "save" | "times-rectangle" | "flash" | "hand-stop" | "run" | "settings" | "image" | "bug" | "user" | "text" | "comment" | "file" | "database" | "table" | "list" | "key" | "audio" | "code" | "circle" | "mask" | "ellipsis" | "clone" | "layout" | "copy" | "italic" | "underline" | "spinner" | "tab" | "square" | "group" | "note" | "sync" | "warning" | "unlink" | "r" | "markdown" | "tex" | "edit" | "julia" | "align-justify" | "battery-half" | "bars" | "blog" | "briefcase" | "brush" | "bullhorn" | "calendar-week" | "calendar-check" | "calendar-times" | "cc-discover" | "cc-mastercard" | "cc-visa" | "cc-stripe" | "clipboard" | "clipboard-check" | "cocalc-ring" | "colors" | "csv" | "cube" | "discord" | "docker" | "dot-circle" | "envelope" | "exchange" | "firefox" | "flow-chart" | "font" | "frame" | "gavel" | "git-square" | "graph" | "grass" | "hand" | "heart" | "horizontal-split" | "icons" | "indent" | "inkscape" | "ipynb" | "js-square" | "keyboard" | "libreoffice" | "life-ring" | "linux" | "magic" | "microchip" | "money-check" | "mousepointer" | "node-js" | "outdent" | "paste" | "pen" | "plus-one" | "qgis" | "quote-left" | "racket" | "sagemath" | "sagemath-bold" | "sagemath-file" | "scheme" | "sort-amount-up" | "square-root-alt" | "store" | "subscript" | "sun" | "superscript" | "tasks" | "text1" | "tex-file" | "thumbs-down" | "thumbs-up" | "toggle-off" | "toggle-on" | "ungroup" | "user-secret" | "user-check" | "user-slash" | "vertical-split" | "vim" | "vscode" | "window-maximize" | "wrench" | "address-card" | "aim" | "align-left" | "align-center" | "align-right" | "angle-double-left" | "angle-double-right" | "angle-down" | "angle-right" | "arrow-circle-o-left" | "arrow-circle-down" | "arrow-circle-up" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "atom" | "backward" | "ban" | "bell" | "bell-o" | "bolt" | "book" | "calculator" | "calendar" | "camera" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "caret-square-left" | "caret-square-right" | "areaChart" | "check" | "check-circle" | "check-square" | "check-square-o" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-circle-right" | "chevron-up" | "circle-notch" | "clock" | "close-circle-two-tone" | "cloud" | "cloud-download" | "cloud-download-alt" | "cloud-upload" | "code-outlined" | "CodeOutlined" | "coffee" | "cog" | "cogs" | "ColumnHeightOutlined" | "ColumnWidthOutlined" | "comments" | "compass" | "credit-card" | "cut" | "dashboard" | "dedicated" | "desktop" | "eraser" | "exclamation-circle" | "exclamation-triangle" | "expand" | "external-link" | "eye" | "eye-slash" | "facebook" | "file-alt" | "file-code" | "file-image" | "file-pdf" | "file-zip" | "files" | "file-export" | "fire" | "folder" | "folder-open" | "font-size" | "forward" | "frown" | "FundProjectionScreenOutlined" | "gear" | "github" | "git" | "global" | "emacs" | "google" | "hdd" | "highlighter" | "history" | "home" | "hourglass-half" | "html5" | "info-circle" | "jupyter" | "laptop" | "skull-crossbones" | "life-saver" | "lightbulb" | "line-chart" | "list-ul" | "list-alt" | "list-ol" | "lock-open" | "lock" | "mail" | "medkit" | "meh" | "minus-circle" | "minus-square" | "money" | "arrows" | "network-wired" | "pause" | "pencil" | "pencil-alt" | "percentage" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-circle-o" | "plus-square" | "plus-square-o" | "PoweroffOutlined" | "print" | "question-circle" | "redo" | "refresh" | "reload" | "remove" | "retweet" | "robot" | "rocket" | "scissors" | "search-minus" | "search-plus" | "select-outlined" | "server" | "sign-in" | "sign-out-alt" | "sitemap" | "share-square" | "shopping-cart" | "smile" | "square-o" | "star-filled" | "star" | "step-backward" | "step-forward" | "stopwatch" | "strikethrough" | "support" | "sync-alt" | "tachometer-alt" | "text-height" | "times" | "times-circle" | "trash" | "twitter" | "undo" | "swap" | "upload" | "UserAddOutlined" | "user-plus" | "user-times" | "video-camera" | "wallet" | "wifi" | "window-restore" | undefined;
        options: string[] | {
            [value: string]: ReactNode;
        };
        style?: CSSProperties | undefined;
    }) => JSX.Element);
    Heading: ({ path, title, icon, desc, }: {
        path?: string | undefined;
        title?: string | undefined;
        desc?: ReactNode;
        icon?: "map" | "python" | "octave" | "header" | "battery-full" | "battery-three-quarters" | "battery-quarter" | "battery-empty" | "graduation-cap" | "terminal" | "replace" | "search" | "repeat" | "bold" | "link" | "compress" | "users" | "info" | "stop" | "file-archive" | "download" | "paper-plane" | "move" | "gears" | "save" | "times-rectangle" | "flash" | "hand-stop" | "run" | "settings" | "image" | "bug" | "user" | "text" | "comment" | "file" | "database" | "table" | "list" | "key" | "audio" | "code" | "circle" | "mask" | "ellipsis" | "clone" | "layout" | "copy" | "italic" | "underline" | "spinner" | "tab" | "square" | "group" | "note" | "sync" | "warning" | "unlink" | "r" | "markdown" | "tex" | "edit" | "julia" | "align-justify" | "battery-half" | "bars" | "blog" | "briefcase" | "brush" | "bullhorn" | "calendar-week" | "calendar-check" | "calendar-times" | "cc-discover" | "cc-mastercard" | "cc-visa" | "cc-stripe" | "clipboard" | "clipboard-check" | "cocalc-ring" | "colors" | "csv" | "cube" | "discord" | "docker" | "dot-circle" | "envelope" | "exchange" | "firefox" | "flow-chart" | "font" | "frame" | "gavel" | "git-square" | "graph" | "grass" | "hand" | "heart" | "horizontal-split" | "icons" | "indent" | "inkscape" | "ipynb" | "js-square" | "keyboard" | "libreoffice" | "life-ring" | "linux" | "magic" | "microchip" | "money-check" | "mousepointer" | "node-js" | "outdent" | "paste" | "pen" | "plus-one" | "qgis" | "quote-left" | "racket" | "sagemath" | "sagemath-bold" | "sagemath-file" | "scheme" | "sort-amount-up" | "square-root-alt" | "store" | "subscript" | "sun" | "superscript" | "tasks" | "text1" | "tex-file" | "thumbs-down" | "thumbs-up" | "toggle-off" | "toggle-on" | "ungroup" | "user-secret" | "user-check" | "user-slash" | "vertical-split" | "vim" | "vscode" | "window-maximize" | "wrench" | "address-card" | "aim" | "align-left" | "align-center" | "align-right" | "angle-double-left" | "angle-double-right" | "angle-down" | "angle-right" | "arrow-circle-o-left" | "arrow-circle-down" | "arrow-circle-up" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "atom" | "backward" | "ban" | "bell" | "bell-o" | "bolt" | "book" | "calculator" | "calendar" | "camera" | "caret-down" | "caret-left" | "caret-right" | "caret-up" | "caret-square-left" | "caret-square-right" | "areaChart" | "check" | "check-circle" | "check-square" | "check-square-o" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-circle-right" | "chevron-up" | "circle-notch" | "clock" | "close-circle-two-tone" | "cloud" | "cloud-download" | "cloud-download-alt" | "cloud-upload" | "code-outlined" | "CodeOutlined" | "coffee" | "cog" | "cogs" | "ColumnHeightOutlined" | "ColumnWidthOutlined" | "comments" | "compass" | "credit-card" | "cut" | "dashboard" | "dedicated" | "desktop" | "eraser" | "exclamation-circle" | "exclamation-triangle" | "expand" | "external-link" | "eye" | "eye-slash" | "facebook" | "file-alt" | "file-code" | "file-image" | "file-pdf" | "file-zip" | "files" | "file-export" | "fire" | "folder" | "folder-open" | "font-size" | "forward" | "frown" | "FundProjectionScreenOutlined" | "gear" | "github" | "git" | "global" | "emacs" | "google" | "hdd" | "highlighter" | "history" | "home" | "hourglass-half" | "html5" | "info-circle" | "jupyter" | "laptop" | "skull-crossbones" | "life-saver" | "lightbulb" | "line-chart" | "list-ul" | "list-alt" | "list-ol" | "lock-open" | "lock" | "mail" | "medkit" | "meh" | "minus-circle" | "minus-square" | "money" | "arrows" | "network-wired" | "pause" | "pencil" | "pencil-alt" | "percentage" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-circle-o" | "plus-square" | "plus-square-o" | "PoweroffOutlined" | "print" | "question-circle" | "redo" | "refresh" | "reload" | "remove" | "retweet" | "robot" | "rocket" | "scissors" | "search-minus" | "search-plus" | "select-outlined" | "server" | "sign-in" | "sign-out-alt" | "sitemap" | "share-square" | "shopping-cart" | "smile" | "square-o" | "star-filled" | "star" | "step-backward" | "step-forward" | "stopwatch" | "strikethrough" | "support" | "sync-alt" | "tachometer-alt" | "text-height" | "times" | "times-circle" | "trash" | "twitter" | "undo" | "swap" | "upload" | "UserAddOutlined" | "user-plus" | "user-times" | "video-camera" | "wallet" | "wifi" | "window-restore" | undefined;
    }) => JSX.Element;
};
export {};
