import { ToolbarAction } from '../../components/types'; /** * Tipos de header soportados por NavigationService */ export type HeaderType = 'home' | 'back' | 'custom' | 'none'; /** * Configuracion de header para paginas con boton volver */ export interface BackHeaderConfig { type: 'back'; /** Clave i18n para el titulo (formato: 'namespace.key') */ titleKey: string; /** Texto del boton volver (opcional, usa icono por defecto) */ backText?: string; /** Mostrar menu hamburguesa (opcional, false por defecto) */ withMenu?: boolean; } /** * Configuracion de header para pagina principal (home) */ export interface HomeHeaderConfig { type: 'home'; /** Mostrar menu hamburguesa */ withMenu?: boolean; /** Acciones adicionales en el header */ actions?: ToolbarAction[]; /** Logo personalizado (CSS variable o URL) */ logoSrc?: string; } /** * Configuracion de header personalizado */ export interface CustomHeaderConfig { type: 'custom'; /** Titulo del header */ title?: string; /** Clave i18n para el titulo */ titleKey?: string; /** Mostrar boton volver */ withBack?: boolean; /** Texto del boton volver */ backText?: string; /** Mostrar acciones */ withActions?: boolean; /** Mostrar menu */ withMenu?: boolean; /** Acciones del header */ actions?: ToolbarAction[]; } /** * Sin header */ export interface NoHeaderConfig { type: 'none'; } /** * Union de todos los tipos de configuracion de header */ export type HeaderConfig = BackHeaderConfig | HomeHeaderConfig | CustomHeaderConfig | NoHeaderConfig; /** * Configuracion por defecto para header tipo 'home' */ export declare const DEFAULT_HOME_HEADER: HomeHeaderConfig; /** * Configuracion por defecto para header tipo 'back' */ export declare const DEFAULT_BACK_HEADER: BackHeaderConfig;