import type { FileInfo } from "../adapters/base.js"; /** Return whether an untrusted framework-relative source key is safe to probe. */ export declare function isSafeFrameworkSourceKey(candidate: string): boolean; /** Return whether a framework source key is the target of a public export. */ export declare function isPublicFrameworkSourceKey(candidate: string): boolean; export declare const FRAMEWORK_ROOT: string; export declare const FRAMEWORK_SRC_DIR: string; export declare const FRAMEWORK_EMBEDDED_SRC_DIR: string; export declare const DEFAULT_FRAMEWORK_SOURCE_EXTENSIONS: readonly [".tsx.src", ".ts.src", ".jsx.src", ".js.src", ".mdx.src", ".md.src", ".tsx", ".ts", ".jsx", ".js", ".mdx", ".md"]; export interface FrameworkSourceFileSystem { stat(path: string): Promise; } export interface FrameworkSourceLookupResult { path: string; lookupDir: string; } export interface ResolveFrameworkSourcePathOptions { fileSystem?: FrameworkSourceFileSystem; extraLookupDirs?: string[]; extensions?: readonly string[]; includeIndexFallback?: boolean; /** Override runtime detection, primarily for deterministic tests. */ compiled?: boolean; } export interface ResolveRelativeFrameworkSourceImportOptions { fileSystem?: FrameworkSourceFileSystem; exists?: (path: string) => Promise; extensions?: readonly string[]; /** Override runtime detection, primarily for deterministic tests. */ compiled?: boolean; } export declare function getFrameworkSourceLookupDirs(extraLookupDirs?: string[], compiled?: boolean): string[]; export declare function isFrameworkSourcePath(path: string): boolean; export declare function resolveFrameworkSourcePath(relativePathWithoutExt: string, options?: ResolveFrameworkSourcePathOptions): Promise; export declare function resolveRelativeFrameworkSourceImport(specifier: string, fromSourcePath: string, options?: ResolveRelativeFrameworkSourceImportOptions): Promise; //# sourceMappingURL=framework-source-resolver.d.ts.map