declare module "botads-api" {
    interface AdLinkResponse {
        success: boolean;
        ad_id?: string;
        description?: string;
        redirect_url?: string;
    }

    interface AdEmbedResponse {
        success: boolean;
        link?: string;
        embed?: any;
        message?: string;
    }

    interface CheckCodeResponse {
        success: boolean;
        clicked?: boolean;
        message?: string;
    }

    class BotAds {
        constructor(userId: string, debug?: boolean);

        getAdLink(code?: string): Promise<AdLinkResponse | null>;
        generateAdEmbed(color?: number, code?: string): Promise<AdEmbedResponse>;
        checkCode(code: string): Promise<CheckCodeResponse | null>;
        setDebug(value: boolean): void;
        getUserId(): string;
    }

    export = BotAds;
}
