type CredentialCreateInput = {
    type: string;
    key: any;
    userId: number;
    appId: string;
};
export declare class CredentialRepository {
    static create(data: CredentialCreateInput): Promise<{
        key: import('../../../prisma-client').Prisma.JsonValue;
        invalid: boolean | null;
        type: string;
        id: number;
        userId: number | null;
        teamId: number | null;
        subscriptionId: string | null;
        billingCycleStart: number | null;
        appId: string | null;
        paymentStatus: string | null;
    }>;
    /**
     * Doesn't retrieve key field as that has credentials
     */
    static findFirstByIdWithUser({ id }: {
        id: number;
    }): Promise<{
        invalid: boolean | null;
        type: string;
        id: number;
        userId: number | null;
        user: {
            email: string;
        } | null;
        teamId: number | null;
        appId: string | null;
    } | null>;
    /**
     * Includes 'key' field which is sensitive data.
     */
    static findFirstByIdWithKeyAndUser({ id }: {
        id: number;
    }): Promise<{
        key: import('../../../prisma-client').Prisma.JsonValue;
        invalid: boolean | null;
        type: string;
        id: number;
        userId: number | null;
        user: {
            email: string;
        } | null;
        teamId: number | null;
        appId: string | null;
    } | null>;
    static findFirstByAppIdAndUserId({ appId, userId }: {
        appId: string;
        userId: number;
    }): Promise<{
        key: import('../../../prisma-client').Prisma.JsonValue;
        invalid: boolean | null;
        type: string;
        id: number;
        userId: number | null;
        teamId: number | null;
        subscriptionId: string | null;
        billingCycleStart: number | null;
        appId: string | null;
        paymentStatus: string | null;
    } | null>;
    static findFirstByUserIdAndType({ userId, type }: {
        userId: number;
        type: string;
    }): Promise<{
        key: import('../../../prisma-client').Prisma.JsonValue;
        invalid: boolean | null;
        type: string;
        id: number;
        userId: number | null;
        teamId: number | null;
        subscriptionId: string | null;
        billingCycleStart: number | null;
        appId: string | null;
        paymentStatus: string | null;
    } | null>;
    static deleteById({ id }: {
        id: number;
    }): Promise<void>;
}
export {};
//# sourceMappingURL=credential.d.ts.map