export declare type ConstOrPromise = T | Promise; export declare type ContextFunc = (context: Context) => ConstOrPromise; export declare type ContextPathFunc = (context: Context, path: string) => ConstOrPromise; export declare type ConstOrContextFunc = ReturnType | ContextFunc; export declare type ConstOrContextPathFunc = ReturnType | ContextPathFunc; export interface RegExpLike { readonly source: string; readonly flags?: string; } export declare function isObject(something: unknown): something is Record; export declare function hasTruthyKey(something: unknown, key: string): boolean; export declare function isRegExpExecArray(something: unknown): something is RegExpExecArray; export declare function filterNonNullable(): (o: T) => o is NonNullable;