import type { Session, NG } from "@ng-org/web"; /** Resolves to the NG session and the ng implementation. */ export declare const ngSession: Promise<{ ng: NG; session: Session; }>; /** * Initialize the ORM by passing the ng implementation and session. * * **This is the first thing you need to do before using the ORM.** * * @param ngImpl The NextGraph API, e.g. exported from `@ng-org/web`. * @param session The established NextGraph session. * * @example * ```typescript * import { ng, init } from "@ng-org/web"; * import { initNg as initNgSignals, Session } from "@ng-org/orm"; * let session: Session; * * // Call as early as possible as it will redirect to the auth page. * await init( * async (event: any) => { * session = event.session; * session!.ng ??= ng; * * // Call initNgSignals * initNgSignals(ng, session); * }, * true, * [] * ); * ``` * */ export declare function initNgSignals(ngImpl: NG, session: Session): void; //# sourceMappingURL=initNg.d.ts.map