import { UserError } from './error_utils'; import { Result } from './result'; export declare enum AppConfigErrorName { APP_CONFIG_IS_NOT_VALID = "appConfigIsNotValid" } export interface AppConfigErrorInvalid { type: AppConfigErrorName.APP_CONFIG_IS_NOT_VALID; file?: string; message: string; } export type AppConfigErrorInfo = AppConfigErrorInvalid; export interface AppBundlerConfig { /** Resolvable module to run to bundle the block. */ readonly module?: string; /** Options passed to the bundler by the CLI. */ readonly options?: null; } export interface AppConfig { readonly version?: '1.0'; /** Frontend entry file for application. */ readonly frontendEntry: string; /** Swappable bundler extension and options. */ readonly bundler?: AppBundlerConfig; } export declare function validateAppConfig(value: unknown): Result>; export declare function appConfigGetFrontendEntry(appConfig: AppConfig): string;