import type { Webhook } from '../../../prisma/client';
import type { UserPermissionRole } from '../../../prisma/enums';
type WebhookGroup = {
    teamId?: number | null;
    profile: {
        slug: string | null;
        name: string | null;
        image?: string;
    };
    metadata?: {
        readOnly: boolean;
    };
    webhooks: Webhook[];
};
export declare class WebhookRepository {
    static getAllWebhooksByUserId({ userId, userRole, }: {
        userId: number;
        userRole?: UserPermissionRole;
    }): Promise<{
        webhookGroups: WebhookGroup[];
        profiles: {
            readOnly?: boolean | undefined;
            slug: string | null;
            name: string | null;
            image?: string;
            teamId: number | null | undefined;
        }[];
    }>;
    static findByWebhookId(webhookId?: string): Promise<{
        time: number | null;
        id: string;
        userId: number | null;
        teamId: number | null;
        secret: string | null;
        subscriberUrl: string;
        payloadTemplate: string | null;
        active: boolean;
        eventTriggers: import('../../../prisma-client').$Enums.WebhookTriggerEvents[];
        platform: boolean;
        timeUnit: import('../../../prisma-client').$Enums.TimeUnit | null;
    }>;
}
export {};
//# sourceMappingURL=webhook.d.ts.map