import * as Types from '../../global/types.generated'; import * as ApolloReactCommon from '@apollo/client'; import * as ApolloReactHooks from '@apollo/client'; export type GroupFragmentFragment = { __typename?: 'Group'; id: string; createdAt: any; createdByAddress: string; firstDepositedAt?: any | null; name: string; nftAddress: string; nftImageUrl: string; proposalTtlInHours: number; singleSharePriceWei: string; totalPriceInWei: string; votingPolicy: Types.VotingPolicy; daoAddress?: string | null; creatorDisplayName?: string | null; creatorAvatarImage?: string | null; marketplace: Types.MarketplaceName; networkId: string; propositionToSign: { __typename?: 'PropositionToSign'; orderHash: string; endsAt: string; tx: { __typename?: 'TransactionToSign'; value: string; to: string; data: string; }; }; members: Array<{ __typename?: 'GroupMember'; id: string; userAddress: string; shares: number; avatarImage: string; displayName: string; propositionSignature: string; }>; }; export type GroupMemberAddTxMutationVariables = Types.Exact<{ input: Types.GroupMemberAddTxInput; }>; export type GroupMemberAddTxMutation = { __typename?: 'Mutation'; groupMemberAddTx: { __typename?: 'Transaction'; id: string; }; }; export type GroupAddMutationVariables = Types.Exact<{ input: Types.GroupAddInput; }>; export type GroupAddMutation = { __typename?: 'Mutation'; groupAdd: { __typename?: 'Group'; id: string; createdAt: any; createdByAddress: string; firstDepositedAt?: any | null; name: string; nftAddress: string; nftImageUrl: string; proposalTtlInHours: number; singleSharePriceWei: string; totalPriceInWei: string; votingPolicy: Types.VotingPolicy; daoAddress?: string | null; creatorDisplayName?: string | null; creatorAvatarImage?: string | null; marketplace: Types.MarketplaceName; networkId: string; propositionToSign: { __typename?: 'PropositionToSign'; orderHash: string; endsAt: string; tx: { __typename?: 'TransactionToSign'; value: string; to: string; data: string; }; }; members: Array<{ __typename?: 'GroupMember'; id: string; userAddress: string; shares: number; avatarImage: string; displayName: string; propositionSignature: string; }>; }; }; export type GroupBindAndJoinTxMutationVariables = Types.Exact<{ input: Types.GroupAndMemberAddTxInput; }>; export type GroupBindAndJoinTxMutation = { __typename?: 'Mutation'; groupBindAndJoinTx: { __typename?: 'Transaction'; hash: string; }; }; export type CurrencyValueQueryVariables = Types.Exact<{ baseCurrency: Types.Currency; to: Types.Currency; }>; export type CurrencyValueQuery = { __typename?: 'Query'; currencyValue: string; }; export declare const GroupFragmentFragmentDoc: ApolloReactCommon.DocumentNode; export declare const GroupMemberAddTxDocument: ApolloReactCommon.DocumentNode; export type GroupMemberAddTxMutationFn = ApolloReactCommon.MutationFunction; /** * __useGroupMemberAddTxMutation__ * * To run a mutation, you first call `useGroupMemberAddTxMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGroupMemberAddTxMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [groupMemberAddTxMutation, { data, loading, error }] = useGroupMemberAddTxMutation({ * variables: { * input: // value for 'input' * }, * }); */ export declare function useGroupMemberAddTxMutation(baseOptions?: ApolloReactHooks.MutationHookOptions): ApolloReactCommon.MutationTuple, ApolloReactCommon.DefaultContext, ApolloReactCommon.ApolloCache>; export type GroupMemberAddTxMutationHookResult = ReturnType; export type GroupMemberAddTxMutationResult = ApolloReactCommon.MutationResult; export type GroupMemberAddTxMutationOptions = ApolloReactCommon.BaseMutationOptions; export declare const GroupAddDocument: ApolloReactCommon.DocumentNode; export type GroupAddMutationFn = ApolloReactCommon.MutationFunction; /** * __useGroupAddMutation__ * * To run a mutation, you first call `useGroupAddMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGroupAddMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [groupAddMutation, { data, loading, error }] = useGroupAddMutation({ * variables: { * input: // value for 'input' * }, * }); */ export declare function useGroupAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions): ApolloReactCommon.MutationTuple, ApolloReactCommon.DefaultContext, ApolloReactCommon.ApolloCache>; export type GroupAddMutationHookResult = ReturnType; export type GroupAddMutationResult = ApolloReactCommon.MutationResult; export type GroupAddMutationOptions = ApolloReactCommon.BaseMutationOptions; export declare const GroupBindAndJoinTxDocument: ApolloReactCommon.DocumentNode; export type GroupBindAndJoinTxMutationFn = ApolloReactCommon.MutationFunction; /** * __useGroupBindAndJoinTxMutation__ * * To run a mutation, you first call `useGroupBindAndJoinTxMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGroupBindAndJoinTxMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [groupBindAndJoinTxMutation, { data, loading, error }] = useGroupBindAndJoinTxMutation({ * variables: { * input: // value for 'input' * }, * }); */ export declare function useGroupBindAndJoinTxMutation(baseOptions?: ApolloReactHooks.MutationHookOptions): ApolloReactCommon.MutationTuple, ApolloReactCommon.DefaultContext, ApolloReactCommon.ApolloCache>; export type GroupBindAndJoinTxMutationHookResult = ReturnType; export type GroupBindAndJoinTxMutationResult = ApolloReactCommon.MutationResult; export type GroupBindAndJoinTxMutationOptions = ApolloReactCommon.BaseMutationOptions; export declare const CurrencyValueDocument: ApolloReactCommon.DocumentNode; /** * __useCurrencyValueQuery__ * * To run a query within a React component, call `useCurrencyValueQuery` and pass it any options that fit your needs. * When your component renders, `useCurrencyValueQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useCurrencyValueQuery({ * variables: { * baseCurrency: // value for 'baseCurrency' * to: // value for 'to' * }, * }); */ export declare function useCurrencyValueQuery(baseOptions: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useCurrencyValueLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type CurrencyValueQueryHookResult = ReturnType; export type CurrencyValueLazyQueryHookResult = ReturnType; export type CurrencyValueQueryResult = ApolloReactCommon.QueryResult;