export type BundledAssetPlatform = 'ios' | 'android'; export interface BundledAssetLocalConfig { scheme: string; host: string; } export interface BundledAssetResolution { url: string; } /** Default Capacitor local URL settings used when no runtime config is available. */ export declare const BUNDLED_ASSET_DEFAULTS: Record; /** Returns true when the input looks like an absolute URL (including protocol-relative URLs). */ export declare function isAbsoluteUrl(url: string): boolean; /** Returns true when any path segment is `..`. */ export declare function containsPathTraversal(path: string): boolean; /** * Normalizes a relative bundled asset path to a leading-slash form. * Returns null when the path contains traversal segments. */ export declare function normalizeBundledPath(path: string): string | null; /** Parses a Capacitor local URL into scheme and host components. */ export declare function parseBundledLocalConfig(localUrl?: string | null): BundledAssetLocalConfig | null; /** Returns the scheme WebView navigation should use for bundled assets on a platform. */ export declare function handlerSchemeForPlatform(platform: BundledAssetPlatform, localConfig: BundledAssetLocalConfig): string; /** * Returns true when the URL targets the configured Capacitor local host/scheme * (including the platform handler scheme rewrite). */ export declare function isBundledLocalUrl(url: string, platform: BundledAssetPlatform, localConfig?: BundledAssetLocalConfig | null): boolean; /** Returns true when the input is a non-empty relative bundled asset path. */ export declare function isRelativeBundledPath(url: string): boolean; /** * Resolves a bundled asset URL for the given platform. * Relative paths become platform-local URLs; bundled local URLs may be rewritten to the handler scheme. */ export declare function resolveBundledAssetUrl(url: string, platform: BundledAssetPlatform, localConfig?: BundledAssetLocalConfig | null): BundledAssetResolution | null; /** * Resolves relative bundled paths for legacy native plugins that do not perform native resolution. * Throws when the path is invalid. */ export declare function resolveLegacyNativeWebViewUrl(url: string, platform: BundledAssetPlatform, localConfig?: BundledAssetLocalConfig | null): string;