@appsemble/lang-sdk
Version:
Language SDK for Appsemble
9 lines (8 loc) • 575 B
TypeScript
import { type MessageGetter } from './remap.js';
import { type PageDefinition } from './types/index.js';
type NamedPage = Pick<PageDefinition, 'name'>;
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;
export {};