declare module '@rikishi/watermelondb/DatabaseProvider' { import * as React from 'react' import Database from '@rikishi/watermelondb/Database' import { NonReactStatics } from 'hoist-non-react-statics' type GetProps = C extends React.ComponentType ? P : never export const DatabaseContext: React.Context export interface DatabaseProviderProps { children?: React.ReactChild // only one child is allowed, goes through React.Children.only database: Database } export const DatabaseProviderComponent: React.ComponentClass export function withDatabase< C extends React.ComponentType

, P = GetProps, R = Omit >(Component: C): React.FunctionComponent & NonReactStatics export default DatabaseProviderComponent }