import * as Types from '../../global/types.generated'; import * as ApolloReactCommon from '@apollo/client'; import * as ApolloReactHooks from '@apollo/client'; export type UserCommunicationChannelsQueryVariables = Types.Exact<{ address: Types.Scalars['String']; }>; export type UserCommunicationChannelsQuery = { __typename?: 'Query'; userCommunicationChannels: { __typename?: 'UserCommunicationChannelsPayload'; email: { __typename?: 'UserCommunicationChannel'; exists: boolean; hint?: string | null; }; telegram: { __typename?: 'UserCommunicationChannel'; exists: boolean; hint?: string | null; }; discord: { __typename?: 'UserCommunicationChannel'; exists: boolean; hint?: string | null; }; }; }; export type UserInfoFragment = { __typename?: 'User'; id: string; lastReadAt: any; preferences: Array<{ __typename?: 'UserPreference'; id: string; commsChannelTagId: string; email: boolean; telegram: boolean; discord: boolean; enabled: boolean; }>; }; export type GetUserQueryVariables = Types.Exact<{ [key: string]: never; }>; export type GetUserQuery = { __typename?: 'Query'; user: { __typename?: 'User'; id: string; lastReadAt: any; preferences: Array<{ __typename?: 'UserPreference'; id: string; commsChannelTagId: string; email: boolean; telegram: boolean; discord: boolean; enabled: boolean; }>; }; }; export declare const UserInfoFragmentDoc: ApolloReactCommon.DocumentNode; export declare const UserCommunicationChannelsDocument: ApolloReactCommon.DocumentNode; /** * __useUserCommunicationChannelsQuery__ * * To run a query within a React component, call `useUserCommunicationChannelsQuery` and pass it any options that fit your needs. * When your component renders, `useUserCommunicationChannelsQuery` 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 } = useUserCommunicationChannelsQuery({ * variables: { * address: // value for 'address' * }, * }); */ export declare function useUserCommunicationChannelsQuery(baseOptions: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useUserCommunicationChannelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type UserCommunicationChannelsQueryHookResult = ReturnType; export type UserCommunicationChannelsLazyQueryHookResult = ReturnType; export type UserCommunicationChannelsQueryResult = ApolloReactCommon.QueryResult; export declare const GetUserDocument: ApolloReactCommon.DocumentNode; /** * __useGetUserQuery__ * * To run a query within a React component, call `useGetUserQuery` and pass it any options that fit your needs. * When your component renders, `useGetUserQuery` 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 } = useGetUserQuery({ * variables: { * }, * }); */ export declare function useGetUserQuery(baseOptions?: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useGetUserLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type GetUserQueryHookResult = ReturnType; export type GetUserLazyQueryHookResult = ReturnType; export type GetUserQueryResult = ApolloReactCommon.QueryResult;