/**
 * Check if we're in CommonJS (Jest) or ESM mode
 */
export declare const isCommonJS: boolean;
/**
 * Convert a file path to a URL that can be used with dynamic import()
 * This is necessary on Windows where absolute paths like "E:\path\to\file"
 * are not valid URLs and need to be converted to "file:///E:/path/to/file"
 */
export declare function toFileURL(filePath: string): string;
/**
 * Get the baasix package root directory
 * Works in both ESM (production) and CommonJS (Jest) environments
 */
export declare function getBaasixRoot(): string;
/**
 * Get a path relative to the baasix package root
 * @param relativePath - Path relative to baasix root (e.g., 'routes', 'app', 'templates')
 */
export declare function getBaasixPath(...relativePath: string[]): string;
/**
 * Get the user's project directory
 */
export declare function getProjectDir(): string;
/**
 * Get a path relative to the user's project
 * @param relativePath - Path relative to project root (e.g., 'extensions', 'migrations')
 */
export declare function getProjectPath(...relativePath: string[]): string;
//# sourceMappingURL=dirname.d.ts.map