import * as Types from '../../global/types.generated'; import * as ApolloReactCommon from '@apollo/client'; import * as ApolloReactHooks from '@apollo/client'; export type UnsubscribeMutationVariables = Types.Exact<{ input?: Types.InputMaybe; }>; export type UnsubscribeMutation = { __typename?: 'Mutation'; userUnsubscribeFromChannel: { __typename?: 'User'; id: string; }; }; export type GetUserSubscriptionsQueryVariables = Types.Exact<{ [key: string]: never; }>; export type GetUserSubscriptionsQuery = { __typename?: 'Query'; userSubscriptions: Array<{ __typename?: 'UserSubscription'; name: string; id: string; address: string; icon?: string | null; source: Types.UserSubscriptionSource; commsChannelTags?: Array<{ __typename?: 'CommsChannelTag'; id: string; name: string; description?: string | null; }> | null; }>; }; export type ChannelsDiscoveryQueryVariables = Types.Exact<{ [key: string]: never; }>; export type ChannelsDiscoveryQuery = { __typename?: 'Query'; commsChannelDiscover: Array<{ __typename?: 'CommsChannelDiscovered'; id: number; subscriberCount?: number | null; address: string; description?: string | null; icon?: string | null; name: string; url?: string | null; }>; }; export declare const UnsubscribeDocument: ApolloReactCommon.DocumentNode; export type UnsubscribeMutationFn = ApolloReactCommon.MutationFunction; /** * __useUnsubscribeMutation__ * * To run a mutation, you first call `useUnsubscribeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUnsubscribeMutation` 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 [unsubscribeMutation, { data, loading, error }] = useUnsubscribeMutation({ * variables: { * input: // value for 'input' * }, * }); */ export declare function useUnsubscribeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions): ApolloReactCommon.MutationTuple | undefined; }>, ApolloReactCommon.DefaultContext, ApolloReactCommon.ApolloCache>; export type UnsubscribeMutationHookResult = ReturnType; export type UnsubscribeMutationResult = ApolloReactCommon.MutationResult; export type UnsubscribeMutationOptions = ApolloReactCommon.BaseMutationOptions; export declare const GetUserSubscriptionsDocument: ApolloReactCommon.DocumentNode; /** * __useGetUserSubscriptionsQuery__ * * To run a query within a React component, call `useGetUserSubscriptionsQuery` and pass it any options that fit your needs. * When your component renders, `useGetUserSubscriptionsQuery` 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 } = useGetUserSubscriptionsQuery({ * variables: { * }, * }); */ export declare function useGetUserSubscriptionsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useGetUserSubscriptionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type GetUserSubscriptionsQueryHookResult = ReturnType; export type GetUserSubscriptionsLazyQueryHookResult = ReturnType; export type GetUserSubscriptionsQueryResult = ApolloReactCommon.QueryResult; export declare const ChannelsDiscoveryDocument: ApolloReactCommon.DocumentNode; /** * __useChannelsDiscoveryQuery__ * * To run a query within a React component, call `useChannelsDiscoveryQuery` and pass it any options that fit your needs. * When your component renders, `useChannelsDiscoveryQuery` 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 } = useChannelsDiscoveryQuery({ * variables: { * }, * }); */ export declare function useChannelsDiscoveryQuery(baseOptions?: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useChannelsDiscoveryLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type ChannelsDiscoveryQueryHookResult = ReturnType; export type ChannelsDiscoveryLazyQueryHookResult = ReturnType; export type ChannelsDiscoveryQueryResult = ApolloReactCommon.QueryResult;