/// <reference types="react" />
import { type Layout as AdLayout } from "./AdLayout";
import { type ArticleAdSize, type DisplayAdSize } from "./utils";
type AdUnitProps<TLayout extends AdLayout> = {
    publisherId?: string;
    slotId: string;
    layout: TLayout;
    comment?: string;
} & ({
    layout: "display";
    dummySize?: DisplayAdSize | {
        width: number;
        height: number;
    };
    customLayout?: never;
} | {
    layout: "in-article";
    dummySize?: ArticleAdSize | {
        width: number;
        height: number;
    };
    customLayout?: never;
} | {
    layout: "custom";
    dummySize?: never;
    customLayout: JSX.Element;
});
export declare const AdUnit: <TLayout extends AdLayout>({ publisherId, slotId, layout, customLayout, comment, dummySize, }: AdUnitProps<TLayout>) => JSX.Element | null;
export {};
