import { Config } from '../../../../index'; import { Context } from 'koishi'; export interface UserItem { id: number; userId: string; channelId: string; itemId: string; quantity: number; expireDate?: number; } export declare enum BuffType { LUCKY_CARD = "lucky_card" } export interface BuffEffect { id: number; userId: string; buffType: BuffType; startDate: string; endDate: string; data?: Record; } declare module 'koishi' { interface Tables { market_user_items: UserItem; user_buff_effects: BuffEffect; } } declare class InventoryPlugin { private readonly ctx; constructor(ctx: Context, config: Config); private setupDatabase; private registerCommands; private handleInventoryCommand; private handleUseItemCommand; } export default InventoryPlugin;