/// <reference types="react" />
import type { IDiscussionForm } from '../../../discussion/components/form';
import { type ICategory } from '../../shared';
interface Props {
    /** Whether the form should be displayed as a card */
    isCard?: boolean;
    /** The ID of the parent, used for slugs */
    parentId?: string;
    /** Props for the form - this uses everything the `DiscussionForm` component does */
    form: IDiscussionForm;
    /** The categories to show in the form */
    categories?: ICategory[];
    /** Details about what a user needs to have to be able to access the form */
    membershipRequiredToPost: {
        /** Whether the user needs to be a member of the community to post */
        required: boolean;
        /** Whether the user is a member of the community */
        isMember?: boolean;
        /** The function to join the community */
        join?: () => Promise<void>;
        /** The function to leave the community */
        leave?: () => Promise<void>;
        /** The text to show when the user is not a member of the community */
        notMemberStateText?: string;
    };
    /** The locale of the page */
    locale?: string;
}
declare const AddPost: React.FC<Props>;
export default AddPost;
