UNPKG

@sanity/form-builder

Version:
13 lines 923 B
import { ConditionalProperty, ConditionalPropertyCallbackContext, CurrentUser } from '@sanity/types'; import React from 'react'; export declare function isThenable(value: any): boolean; export declare function isTrueIsh(checkProperty: ConditionalProperty, checkPropertyName: string, { document, parent, value, currentUser }: ConditionalPropertyCallbackContext): ConditionalProperty; export declare function omitDeprecatedRole(user: CurrentUser): Omit<CurrentUser, 'role'>; export declare function useCheckCondition(checkProperty: ConditionalProperty, checkPropertyName: string, context: ConditionalPropertyCallbackContext): ConditionalProperty; declare type ChildrenWithPropsProps = { children: React.ReactNode | React.ReactNode[]; childProps: Record<string, unknown>; }; export declare function mappedChildren({ children, childProps }: ChildrenWithPropsProps): {}[]; export {}; //# sourceMappingURL=common.d.ts.map