19 lines
763 B
TypeScript
19 lines
763 B
TypeScript
import { Pool } from 'pg';
|
|
export declare const pool: Pool;
|
|
export interface QuotaEntry {
|
|
id?: number;
|
|
provider: string;
|
|
used: number;
|
|
total: number;
|
|
percentage: number;
|
|
timestamp?: Date;
|
|
meta?: any;
|
|
}
|
|
export declare function initDb(): Promise<void>;
|
|
export declare function saveAntigravityLatest(data: Record<string, any>): Promise<void>;
|
|
export declare function loadAntigravityLatest(): Promise<Record<string, any> | null>;
|
|
export declare function insertQuota(entry: QuotaEntry): Promise<any>;
|
|
export declare function getLatestQuotas(): Promise<any[]>;
|
|
export declare function getTodayStartQuota(provider: string): Promise<any>;
|
|
export declare function getQuotaHistory(days?: number): Promise<any[]>;
|
|
//# sourceMappingURL=db.d.ts.map
|