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