export interface OrgConfigBridge { /** Resolves a `$org.` reference (or plain key) to a literal id. */ resolveValidator: (refOrKey: string) => string | null; /** When true the app actually has a provider mounted. */ available: boolean; } /** * Apps that consume `runtime-react` AND `@asteby/metacore-app-providers` * call this once near the root (typically inside the OrgConfigProvider * children) so the SDK reads the same resolver. Hosts without an org * provider can ignore this entirely; the SDK's null bridge keeps every * call returning `null` so $org. tokens stay verbatim in the form * — same fallback the kernel uses for unresolved references. */ export declare function setOrgConfigBridge(bridge: OrgConfigBridge | null): void; /** * Returns the active bridge. Pure read — no React hook so it can be * called from non-component code (zod schema builders, helpers). */ export declare function getOrgConfigBridge(): OrgConfigBridge; /** * Resolves a Validation token into the validator identifier the SDK * should apply. Returns the resolved literal when the org config knows * the key, or the original token when it doesn't (so apps can decide). * Plain literals (no `$org.` prefix) pass through. */ export declare function resolveValidatorToken(token: string | undefined | null): string | null; //# sourceMappingURL=use-org-config-bridge.d.ts.map