export type ConstOrPromise = T | Promise; export type ContextFunc = (context: Context) => ConstOrPromise; export type ContextPathFunc = (context: Context, path: string) => ConstOrPromise; export type ConstOrContextFunc = ReturnType | ContextFunc; export type ConstOrContextPathFunc = ReturnType | ContextPathFunc; export type 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;