import type { Webhook } from '../../../../../prisma/client';
import type { TrpcSessionUser } from '../../../types';
type GetByViewerOptions = {
    ctx: {
        user: NonNullable<TrpcSessionUser>;
    };
};
type WebhookGroup = {
    teamId?: number | null;
    profile: {
        slug: string | null;
        name: string | null;
        image?: string;
    };
    metadata?: {
        readOnly: boolean;
    };
    webhooks: Webhook[];
};
export type WebhooksByViewer = {
    webhookGroups: WebhookGroup[];
    profiles: {
        readOnly?: boolean | undefined;
        slug: string | null;
        name: string | null;
        image?: string | undefined;
        teamId: number | null | undefined;
    }[];
};
export declare const getByViewerHandler: ({ ctx }: GetByViewerOptions) => Promise<{
    webhookGroups: {
        teamId?: number | null;
        profile: {
            slug: string | null;
            name: string | null;
            image?: string;
        };
        metadata?: {
            readOnly: boolean;
        };
        webhooks: Webhook[];
    }[];
    profiles: {
        readOnly?: boolean | undefined;
        slug: string | null;
        name: string | null;
        image?: string;
        teamId: number | null | undefined;
    }[];
}>;
export {};
//# sourceMappingURL=getByViewer.handler.d.ts.map