import { type MessageGetter } from './remap.js'; import { type PageDefinition } from './types/index.js'; type NamedPage = Pick; export declare function getPageMessageId(pageName: string): string; export declare function getPagePathSegment(page: string | NamedPage): string; export declare function getPageDisplayName(page: NamedPage, getAppMessage: MessageGetter): string; export declare function findPageById(pages: PageDefinition[], normalizedPageId: string, appMessageIds: string[], getAppMessage: MessageGetter): PageDefinition | null; /** * Collect the pages a page sits under, by following `parent` upwards. * * @param pages The pages of the app. * @param page The page to collect the ancestors of. * @param appMemberRoles The roles held by the app member, used to resolve role-scoped parents. * @returns The ancestors, root first, excluding the page itself. */ export declare function getPageAncestors(pages: PageDefinition[], page: PageDefinition, appMemberRoles?: string[]): PageDefinition[]; export {};