import { type ComponentType } from "react"; export type PdfPreviewProps = { url: string; title: string; }; export type EditableArtifactSurfaceProps = { workspaceId: string; artifactId: string; embedded?: boolean | undefined; }; export type CodexSubscriptionsSurfaceProps = { workspaceId: string; canManage: boolean; }; export type AppSurfaces = { pdfPreview: ComponentType; editableArtifact: ComponentType; /** The workspace's ChatGPT subscription accounts, managed in the console. */ codexSubscriptions: ComponentType; }; type Preloadable = { preload?: () => void; }; /** * A lazy surface that can start loading before it renders, so a host's * split chunk does not add a second loading flash behind the panel that * shows it (see `usePreloadAppSurface`). */ export declare function lazySurface

(load: () => Promise<{ default: ComponentType

; }>): ComponentType

& Required; /** Starts loading a registered lazy surface once `when` holds. */ export declare function usePreloadAppSurface(name: keyof AppSurfaces, when: boolean): void; export declare function PdfPreviewSurface(props: PdfPreviewProps): import("react").JSX.Element; export declare function EditableArtifactSurface(props: EditableArtifactSurfaceProps): import("react").JSX.Element; export declare function CodexSubscriptionsSurface(props: CodexSubscriptionsSurfaceProps): import("react").JSX.Element | null; export {};