import * as Types from '../../global/types.generated'; import * as ApolloReactCommon from '@apollo/client'; import * as ApolloReactHooks from '@apollo/client'; export type ClientTokenQueryVariables = Types.Exact<{ [key: string]: never; }>; export type ClientTokenQuery = { __typename?: 'Query'; getSardineToken: { __typename?: 'SardineResponse'; baseURL: string; clientToken: string; }; }; export type OrderDeliveredQueryVariables = Types.Exact<{ clientToken: Types.Scalars['String']; orderId: Types.Scalars['String']; }>; export type OrderDeliveredQuery = { __typename?: 'Query'; orderDelivered: { __typename?: 'SardineOrderDeliveredResponse'; status: string; }; }; export declare const ClientTokenDocument: ApolloReactCommon.DocumentNode; /** * __useClientTokenQuery__ * * To run a query within a React component, call `useClientTokenQuery` and pass it any options that fit your needs. * When your component renders, `useClientTokenQuery` 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 } = useClientTokenQuery({ * variables: { * }, * }); */ export declare function useClientTokenQuery(baseOptions?: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useClientTokenLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type ClientTokenQueryHookResult = ReturnType; export type ClientTokenLazyQueryHookResult = ReturnType; export type ClientTokenQueryResult = ApolloReactCommon.QueryResult; export declare const OrderDeliveredDocument: ApolloReactCommon.DocumentNode; /** * __useOrderDeliveredQuery__ * * To run a query within a React component, call `useOrderDeliveredQuery` and pass it any options that fit your needs. * When your component renders, `useOrderDeliveredQuery` 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 } = useOrderDeliveredQuery({ * variables: { * clientToken: // value for 'clientToken' * orderId: // value for 'orderId' * }, * }); */ export declare function useOrderDeliveredQuery(baseOptions: ApolloReactHooks.QueryHookOptions): ApolloReactCommon.QueryResult>; export declare function useOrderDeliveredLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions): ApolloReactCommon.LazyQueryResultTuple>; export type OrderDeliveredQueryHookResult = ReturnType; export type OrderDeliveredLazyQueryHookResult = ReturnType; export type OrderDeliveredQueryResult = ApolloReactCommon.QueryResult;