import { ChannelEndpointResponse, NovuError } from '@novu/js'; type UseChannelEndpointProps = { identifier: string; onSuccess?: (data: ChannelEndpointResponse | null) => void; onError?: (error: NovuError) => void; }; type UseChannelEndpointResult = { endpoint?: ChannelEndpointResponse | null; error?: NovuError; isLoading: boolean; isFetching: boolean; refetch: () => Promise; }; /** * Get a channel endpoint by identifier. */ declare const useChannelEndpoint: (props: UseChannelEndpointProps) => UseChannelEndpointResult; export { useChannelEndpoint }; export type { UseChannelEndpointProps, UseChannelEndpointResult };