/** * Options that may be passed to the middleware. */ export declare type Options = { title?: string; stylesheets?: string[]; navigationLinks?: NavigationLinkMap; assetBaseUrl?: string; serveAssets?: boolean; defaultLinks?: Link[]; hiddenRels?: string[]; }; /** * Options after clean-up. * * Basically the same but nothing is optional. */ export declare type SureOptions = { title: string; stylesheets: string[]; navigationLinks: SureNavigationLinkMap; assetBaseUrl: string; serveAssets: boolean; defaultLinks: Link[]; hiddenRels: string[]; }; /** * An object containing a list of navigation links. */ export declare type NavigationLinkMap = { [rel: string]: NavigationLink | null | true; }; /** * A normalized NavigationLinkMap. * * The nulls are removed, and 'true' is transformed to some default settings. */ export declare type SureNavigationLinkMap = { [rel: string]: NavigationLink; }; /** * Where Navigation links should appear */ export declare type NavigationPosition = 'header' | 'header-right' | 'pager' | 'alternate'; /** * A "NavigationLink" specifies a link that will automatically get recognized * by the hal-browser and placed in the Navigation bar */ export declare type NavigationLink = { cssClass?: string; defaultTitle?: string; icon?: string; position?: NavigationPosition; priority?: number; showLabel?: boolean; }; /** * Represents some link. */ export declare type Link = { rel: string; href: string; type?: string; title?: string; templated?: boolean; rendered?: boolean; hints?: { status?: 'deprecated' | 'gone'; }; };