import { type ReactNode } from 'react'; export declare const AttachmentPreviewSurface: import("react").Context; type Bridge = { version: number; focus(): void; close(): void; }; export declare function attachmentPreviewBridge(): Bridge | undefined; /** The child has no application bootstrap. Existing hooks run in the opener. */ export declare class AttachmentPreviewWindow { private readonly opener; private readonly open; private child; private root; private identity; private disconnect; constructor(opener: Window, open?: () => Window | null); show(identity: string, render: (document: Document) => ReactNode): void; close: () => void; private dispose; } export declare function showAttachmentPreview(identity: string, render: (document: Document) => ReactNode): void; export declare function closeAttachmentPreview(): void; export {}; //# sourceMappingURL=attachment-preview-window.d.ts.map