import type { Database } from "./index.js"; export declare const SYSTEM_TENANT_SLUG = "system"; export interface SystemSetupConfig { systemTenant: { name: string; description?: string; }; superAdmin: { email: string; displayName: string; }; } export interface SetupResult { success: boolean; created: { systemTenant: boolean; superAdmin: boolean; }; systemTenantId?: string; error?: string; } /** * Setup sistem tenant'ı ve super admin kullanıcısını oluşturur */ export declare function setupSystem(db: Database, config: SystemSetupConfig): Promise; /** * Sistem tenant'ını slug ile bulur */ export declare function getSystemTenant(db: Database): Promise<{ id: string; name: string; slug: string | null; subdomain: string | null; description: string | null; industry: string | null; status: string; subscriptionPlan: string; settings: unknown; insertedAt: Date; updatedAt: Date; deletedAt: Date | null; }[]>; /** * Sistem durumunu kontrol eder */ export declare function checkSystemSetup(db: Database): Promise<{ systemTenantExists: boolean; superAdminExists: boolean; needsSetup: boolean; }>; /** * Creates default roles for a new tenant */ export declare function createDefaultTenantRoles(db: Database | any, // Accept both Database and Transaction tenantId: string): Promise>; //# sourceMappingURL=setup.d.ts.map