import type { BundlerEntryRecord, NormalizedBundlerLogger, BundlerStaticShellLink } from "../types.d.ts"; import type { ResolvedDiscovery } from "./discovery.js"; type LoadedFrontendConfig = { config: unknown; configPath: string | null; dependencies?: readonly string[]; generatedScss?: string; }; type FrontendConfigApi = { findConfig?: (startDir?: string, boundaryDir?: string) => Promise; loadConfig?: (projectRoot?: string, options?: Record) => Promise; generateFrontendScss?: (config: unknown) => string; generateStaticIconsModule?: (config: unknown, options?: { rootDir?: string; }) => Promise<{ contents: string; count: number; specs: string[]; }>; generateFaviconAssets?: (config: unknown, options?: { rootDir?: string; }) => Promise; }; type ResolvedFrontendFaviconFile = { contents: Uint8Array; path: string; }; type ResolvedFrontendFavicon = { files: ResolvedFrontendFaviconFile[]; links: BundlerStaticShellLink[]; rasterized: boolean; }; type ResolvedFrontendStaticIcons = { configPath: string | null; contents: string; count: number; }; type ResolvedFrontendConfigStyles = { configPath: string | null; dependencies: string[]; scss: string; }; type PreparedFrontendConfigStyles = { configPath: string | null; dependencies: string[]; entryRecord: BundlerEntryRecord; }; declare const FRONTEND_CONFIG_PATH: string; declare const FRONTEND_CONFIG_RULE_KEY = "frontend-config"; declare const FRONTEND_CONFIG_VIRTUAL_ENTRY_NAME = "frontend-config-styles"; declare const FRONTEND_CONFIG_VIRTUAL_ENTRY_PATH = "package-virtual:frontend-config-styles"; declare function findFrontendConfigFile(startDir: string): Promise; declare function loadFrontendConfigApi(rootDir: string): Promise; declare function resolveFrontendConfigStyles(rootDir: string, preloadedApi?: FrontendConfigApi | null): Promise; declare function resolveFrontendStaticIcons(rootDir: string, preloadedApi?: FrontendConfigApi | null): Promise; declare function resolveFrontendFavicon(rootDir: string, preloadedApi?: FrontendConfigApi | null): Promise; declare function resolveFrontendIconMode(rootDir: string): Promise; declare function prepareFrontendConfigStyles(args: { environment?: string; logger: NormalizedBundlerLogger; rootDir: string; }): Promise; declare function appendFrontendConfigStyleEntry(discovery: ResolvedDiscovery, prepared: PreparedFrontendConfigStyles | null): ResolvedDiscovery; declare function createEmptyResolvedDiscovery(): ResolvedDiscovery; export { resolveFrontendFavicon, resolveFrontendIconMode, resolveFrontendStaticIcons, FRONTEND_CONFIG_PATH, FRONTEND_CONFIG_RULE_KEY, FRONTEND_CONFIG_VIRTUAL_ENTRY_NAME, FRONTEND_CONFIG_VIRTUAL_ENTRY_PATH, appendFrontendConfigStyleEntry, createEmptyResolvedDiscovery, findFrontendConfigFile, loadFrontendConfigApi, prepareFrontendConfigStyles, resolveFrontendConfigStyles, }; export type { LoadedFrontendConfig, PreparedFrontendConfigStyles, ResolvedFrontendConfigStyles, ResolvedFrontendFavicon, ResolvedFrontendFaviconFile, }; //# sourceMappingURL=frontend-config.d.ts.map