import { DecodeState, EnsurePageByTitle, OpenPage, DeletePage, EncodeState } from "../internal/types"; import { ViewSharedPagesProps } from "../components/ViewSharedPages"; import { SharedPageStatusProps } from "../components/SharedPageStatus"; type SharedPageObserver = ({ onload, onunload, }: { onload: (notebookPageId: string) => void; onunload: (notebookPageId: string) => void; }) => () => void; declare const setupSharePageWithNotebook: ({ overlayProps, getCurrentNotebookPageId, ensurePageByTitle, openPage, deletePage, decodeState, encodeState, onConnect, }?: { overlayProps?: { viewSharedPageProps?: ViewSharedPagesProps | undefined; sharedPageStatusProps?: { selector?: string | undefined; getNotebookPageId?: ((element: Node) => Promise) | undefined; onCopy?: SharedPageStatusProps["onCopy"]; getPaths: (notebookPageId: string) => string[]; observer?: SharedPageObserver | undefined; } | undefined; } | undefined; getCurrentNotebookPageId?: (() => Promise) | undefined; ensurePageByTitle?: EnsurePageByTitle | undefined; openPage?: OpenPage | undefined; deletePage?: DeletePage | undefined; encodeState?: EncodeState | undefined; decodeState?: DecodeState | undefined; onConnect?: (() => () => void) | undefined; }) => { unload: () => void; refreshContent: ({ label, notebookPageId, }: { label?: string | undefined; notebookPageId: string; }) => Promise; isShared: (notebookPageId: string) => Promise; }; export default setupSharePageWithNotebook;