| 1 | export const firebaseOAuthGrantType: string; |
| 2 | export const wranglerD1MaxBufferBytes: number; |
| 3 | |
| 4 | export function assessMigrationCapacity( |
| 5 | rows: Array<Record<string, unknown>>, |
| 6 | now?: Date, |
| 7 | ): { |
| 8 | statusTotals: Record<"open" | "resolved" | "ignored" | "other", number>; |
| 9 | ageByStatus: Record< |
| 10 | "open" | "resolved" | "ignored" | "other", |
| 11 | Record<"under30d" | "days30to59d" | "days60plus" | "invalid", number> |
| 12 | >; |
| 13 | activeReasons: { |
| 14 | open: number; |
| 15 | otherStatus: number; |
| 16 | recentResolvedOrIgnored: number; |
| 17 | invalidResolvedOrIgnored: number; |
| 18 | }; |
| 19 | automaticRetention: { compacted: number; archived: number }; |
| 20 | manualReview: { open30to59d: number; open60dPlus: number; otherStatus30dPlus: number }; |
| 21 | }; |
| 22 | |
| 23 | export function runWrangler( |
| 24 | projectDir: string, |
| 25 | database: string, |
| 26 | query: string, |
| 27 | spawn?: ( |
| 28 | command: string, |
| 29 | args: string[], |
| 30 | options: { maxBuffer: number; [key: string]: unknown }, |
| 31 | ) => { error?: Error; status: number | null; stdout?: string }, |
| 32 | ): Array<Record<string, unknown>>; |
| 33 | |
| 34 | export function classifyMigrationGroup( |
| 35 | row: Record<string, unknown>, |
| 36 | now?: Date, |
| 37 | ): "active" | "compacted" | "archived"; |
| 38 | |
| 39 | export function canonicalJSONString(value: unknown): string; |
| 40 | export function contentDigest(value: unknown): string; |
| 41 | |
| 42 | export function buildFirebaseGroups( |
| 43 | groupRows: Array<Record<string, unknown>>, |
| 44 | reportRows: Array<Record<string, unknown>>, |
| 45 | now?: Date, |
| 46 | ): Map<string, { |
| 47 | state: "active" | "compacted" | "archived"; |
| 48 | value: Record<string, unknown> | null; |
| 49 | firstEventId: string; |
| 50 | reservedBytes: number; |
| 51 | }>; |
| 52 |