/**
* Base class for route components in JQHTML Router v2
*/
import { Jqhtml_Component } from '@jqhtml/core';
import type { RouteMeta } from './types.js';
declare module '@jqhtml/core' {
interface Jqhtml_Component {
_is_route?: boolean;
}
}
export declare class Jqhtml_Route extends Jqhtml_Component {
static routes: string[];
static layout: string;
static meta: RouteMeta;
_is_route: boolean;
args: Record;
constructor(options?: any);
/**
* Called during app initialization to register routes
* This is where routes call register_route for each path they handle
*/
static init(): void;
/**
* Generate URL for this route with given parameters
* Static version for generating URLs without an instance
*/
static url(params?: Record): string;
/**
* Generate URL for this route with current args merged with new params
* Instance method that includes current route parameters
*/
url(params?: Record): string;
/**
* Navigate to this route with given parameters
* Static version for programmatic navigation
*/
static dispatch(params?: Record): void;
/**
* Navigate to this route with current args merged with new params
* Instance method for navigation from within a route
*/
dispatch(params?: Record): void;
/**
* Called before this route is activated
* Can be used for route-specific guards
*/
pre_dispatch(): Promise;
/**
* Called after this route has fully loaded
* Can be used for analytics, etc.
*/
post_dispatch(): Promise;
/**
* Override on_render for custom route rendering
* By default does nothing - routes should override this or use templates
*/
on_render(): Promise;
}
//# sourceMappingURL=route.d.ts.map