import { Integr8Config } from '../types'; import { EnvironmentOrchestrator } from './environment-orchestrator'; import { EnvironmentContext } from './environment-context'; export declare function loadFile(configPath: string): any; /** * Loads configuration from file system */ export declare function loadConfigFromFile(type?: string, configPath?: string): Promise; /** * Sets up the test environment with all configured services and databases. * This function should be called at the beginning of each test suite. * * @param testConfig - Optional configuration to override the default config */ export declare function setupEnvironment(testConfig?: Integr8Config): Promise; /** * Tears down the test environment and cleans up all resources. * This function should be called at the end of each test suite. */ export declare function teardownEnvironment(): Promise; /** * Gets the current environment context for accessing services, databases, and other resources. * This function should be called within test functions to access the test environment. * * @returns The current environment context * @throws Error if environment is not set up */ export declare function getEnvironmentContext(): EnvironmentContext; /** * Gets the current environment orchestrator for advanced operations. * This is a lower-level function for advanced use cases. * * @returns The current environment orchestrator * @throws Error if environment is not set up */ export declare function getEnvironmentOrchestrator(): EnvironmentOrchestrator; /** * Gets the current configuration used for the test environment. * * @returns The current configuration * @throws Error if environment is not set up */ export declare function getEnvironmentConfig(): Integr8Config; /** * Checks if the test environment is currently set up and ready. * * @returns True if environment is ready, false otherwise */ export declare function isEnvironmentReady(): boolean; /** * Checks if we're using an existing environment from integr8 up. * * @returns True if using existing environment, false if we created our own */ export declare function isUsingExistingEnvironment(): boolean; /** * Seeds the database for a specific test file. * * **NOTE**: In most cases, you don't need to call this function manually! * The framework automatically handles seeding based on your configured strategy. * This function is available for advanced use cases where you need manual control. * * @param fileName - The name of the test file * @param databaseName - Optional specific database name to seed * @deprecated Consider using automatic seeding instead by just calling setupEnvironment() */ export declare function seedForFile(fileName: string, databaseName?: string): Promise; /** * Seeds the database for a specific test. * * **NOTE**: In most cases, you don't need to call this function manually! * The framework automatically handles seeding based on your configured strategy. * This function is available for advanced use cases where you need manual control. * * @param testName - The name of the test * @param filePath - The path to the test file * @param databaseName - Optional specific database name to seed * @deprecated Consider using automatic seeding instead by just calling setupEnvironment() */ export declare function seedForTest(testName: string, filePath: string, databaseName?: string): Promise; /** * Restores the database state after a test file. * * **NOTE**: In most cases, you don't need to call this function manually! * The framework automatically handles restoration based on your configured strategy. * This function is available for advanced use cases where you need manual control. * * @param fileName - The name of the test file * @param databaseName - Optional specific database name to restore * @deprecated Consider using automatic restoration instead by just calling setupEnvironment() */ export declare function restoreAfterFile(fileName: string, databaseName?: string): Promise; /** * Restores the database state after a test. * * **NOTE**: In most cases, you don't need to call this function manually! * The framework automatically handles restoration based on your configured strategy. * This function is available for advanced use cases where you need manual control. * * @param testName - The name of the test * @param filePath - The path to the test file * @param databaseName - Optional specific database name to restore * @deprecated Consider using automatic restoration instead by just calling setupEnvironment() */ export declare function restoreAfterTest(testName: string, filePath: string, databaseName?: string): Promise; //# sourceMappingURL=test-globals.d.ts.map