import type { AuthzContext } from './context/authz-context'; /** * Sostituisce ricorsivamente `{ $ctx: 'path' }` con `getPath(ctx, path)`. * Preserva tipi primitivi e shape oggetto/array. * * Esempio: * substituteContext( * { juridicalId: { $ctx: 'tenantId' } }, * { tenantId: 'abc', ... } * ) * → { juridicalId: 'abc' } * * substituteContext( * { enrolledLearnerIds: { hasSome: { $ctx: 'connected.studentsOfTeacher' } } }, * ctx * ) * → { enrolledLearnerIds: { hasSome: ['student1', 'student2'] } } */ export declare function substituteContext(template: any, ctx: AuthzContext): T; //# sourceMappingURL=scope-substitute.d.ts.map