@ribajs/router
Version:
Routing extension for Riba.js inspired by Barba.js
17 lines (16 loc) • 1.02 kB
TypeScript
import { Response } from "../../types/response.js";
declare class Dom {
static getPrefetchLinkElements(content: DocumentFragment | Document): NodeListOf<HTMLLinkElement>;
static parseTitle(content: DocumentFragment | Document): string;
static parseResponse(responseText: string, parseTitle: boolean, containerSelector: string, prefetchLinks?: boolean): Response;
static parseInitial(parseTitle: boolean, containerSelector: string, prefetchLinks?: boolean): {
container: HTMLElement;
title: string;
prefetchLinks: NodeListOf<HTMLLinkElement> | HTMLLinkElement[];
};
static getContainer(element: HTMLTemplateElement | HTMLElement | Document, containerSelector: string): HTMLElement;
static getNamespace(element: HTMLElement): string | null;
static putContainer(element: HTMLElement, wrapper: HTMLElement): void;
protected static parseContainer(newPage: HTMLTemplateElement | HTMLElement | Document, containerSelector: string): HTMLElement;
}
export { Dom };