import { Context } from 'react'; /** * Construct the react context and make sure we set the display name * * @param aName - the display name * @param aDefault - optionally a default value * * @returns the context with mandatory `displayName` field */ export declare function createReactContext(aName: string, aDefault?: T): Required>; /** * Returns the display name of a context */ export declare const selectDisplayName: (aCtx: Context) => string; /** * Validates that the value is not nil and throws an exception otherwise * * @param aValue - value to check * @param aContext - the context, for debugging purposes * * @returns the original value, guaranteed that it will not be nil */ export declare function assertProvider(aValue: T, aContext: Context, aParentContext?: Context): NonNullable;