import { CreationOptional, DataTypes, InferAttributes, InferCreationAttributes } from 'sequelize'; import type { LiteralUnion } from 'type-fest'; import { TenantModel } from '../tenant-model'; export declare const nextEntitlementGrantId: (size?: number) => string; export declare class EntitlementGrant extends TenantModel, InferCreationAttributes> { id: CreationOptional; livemode: boolean; instance_did?: string; entitlement_id: string; customer_id: string; source_subscription_id?: string; source_channel: LiteralUnion<'stripe' | 'arcblock' | 'ethereum' | 'base' | 'app_store' | 'google_play', string>; active_from: number; active_until: number; status: LiteralUnion<'active' | 'canceled' | 'expired' | 'voided', string>; metadata?: Record; created_at: CreationOptional; updated_at: CreationOptional; static readonly GENESIS_ATTRIBUTES: { id: { type: DataTypes.StringDataType; primaryKey: boolean; allowNull: boolean; defaultValue: (size?: number) => string; }; livemode: { type: DataTypes.AbstractDataTypeConstructor; allowNull: boolean; }; entitlement_id: { type: DataTypes.StringDataType; allowNull: boolean; }; customer_id: { type: DataTypes.StringDataType; allowNull: boolean; }; source_subscription_id: { type: DataTypes.StringDataType; allowNull: boolean; }; source_channel: { type: DataTypes.StringDataType; allowNull: boolean; }; active_from: { type: DataTypes.IntegerDataTypeConstructor; allowNull: boolean; }; active_until: { type: DataTypes.IntegerDataTypeConstructor; allowNull: boolean; }; status: { type: DataTypes.StringDataType; allowNull: boolean; defaultValue: string; }; metadata: { type: DataTypes.AbstractDataTypeConstructor; allowNull: boolean; }; created_at: { type: DataTypes.DateDataTypeConstructor; defaultValue: DataTypes.AbstractDataTypeConstructor; allowNull: boolean; }; updated_at: { type: DataTypes.DateDataTypeConstructor; defaultValue: DataTypes.AbstractDataTypeConstructor; allowNull: boolean; }; }; static initialize(sequelize: any): void; static associate(models: any): void; } export type TEntitlementGrant = InferAttributes;