/** The slice of the resolved CMS config this editor reads. */
interface EditorConfig {
    collections?: Record<string, {
        labels?: {
            singular?: string;
        };
        urlPrefix?: string;
    } | undefined>;
    seo?: {
        siteUrl?: string;
    };
}
/** The slice of the admin session this editor reads. */
interface EditorSession {
    user?: {
        role?: string;
        name?: string;
        email?: string;
    };
}
interface PostSectionEditorProps {
    postType: string;
    /** undefined when creating a new post (`/posts/:type/new`) */
    documentId?: string;
    config?: EditorConfig;
    session?: EditorSession;
    onNavigate: (path: string) => void;
    /**
     * Open a preview route in a new browser tab. `prepare` runs before the tab
     * navigates (used to save an unsaved draft first); returning `false` cancels
     * the open. Falls back to in-tab navigation when not provided.
     */
    onOpenPreview?: (path: string, prepare?: () => Promise<boolean | void> | boolean | void) => void;
}
export declare function PostSectionEditor({ postType, documentId, config, session, onNavigate, onOpenPreview, }: PostSectionEditorProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=PostSectionEditor.d.ts.map