/** * A domain's language profile, and the role order its sentences use. */ import type { RoleSpec } from '../schema'; /** * A domain's language profile as framework reads it: word order, command * keywords, and role markers (with the side of the value each attaches to). */ export interface PatternGenLanguageProfile { readonly code: string; readonly wordOrder: 'SVO' | 'SOV' | 'VSO' | 'VOS' | 'OSV' | 'OVS' | 'free'; readonly keywords: Record; readonly roleMarkers?: Record; } /** * Sort roles by word order: descending `svoPosition` (or `sovPosition` in an * SOV language) — higher values come first. The schema renderer * (`createSchemaRenderer`) orders roles with it, as the core's pattern * generator does (`createSchemaPatternGenerator` with `positionOrder: * 'descending'`), so a rendered surface re-parses. */ export declare function sortRolesByWordOrder(roles: RoleSpec[], wordOrder: string): RoleSpec[]; //# sourceMappingURL=profile.d.ts.map