import { type Ref, type Refable, type RefByPrimary } from 'domain-objects'; import type { DeclastructDao } from '../../domain.objects/DeclastructDao'; /** * .what = resolves any ref to RefByPrimary * .why = enables getting primary key from any ref type * .note = if ref is already RefByPrimary, returns as-is without db call */ export declare const getRefByPrimary: , TContext extends Record>(input: { ref: Ref; }, context: { dao: DeclastructDao; } & TContext) => Promise | null>;