import type { CreateChannelParams, UpdateChannelParams, Channel, ChannelBackup, ChannelRow, Track, SdkResult } from './types'; /** * Creates a new radio channel and connects it to a user */ export declare const createChannel: ({ id, name, slug, userId, description, url, latitude, longitude }: CreateChannelParams) => Promise>; /** * Updates a channel */ export declare const updateChannel: (id: string, changes: UpdateChannelParams) => Promise>; /** * Deletes a channel */ export declare const deleteChannel: (id: string) => Promise>; /** * Finds a channel by slug * the "channels_with_tracks" is a view that contains a few extra, useful fields */ export declare const readChannel: (slug: string) => Promise>; /** * Returns a list of channels. */ export declare const readChannels: (limit?: number) => Promise>; /** * Lists all channels from current user */ export declare const readUserChannels: () => Promise>; /** * Fetches tracks by channel slug */ export declare function readChannelTracks(slug: string, limit?: number): Promise>; /** * Creates a backup of a channel and all its tracks */ export declare function createChannelBackup(slug: string): Promise>; /** * Checks if the local session user can edit a channel */ export declare function canEditChannel(slug: string): Promise; /** * Uploads an image file to Cloudinary */ export declare function createImage(file: string, tags?: string): Promise; /** * Make a channel follow another channel */ export declare const followChannel: (followerId: string, channelId: string) => Promise>; /** * Make a channel unfollow another channel */ export declare const unfollowChannel: (followerId: string, channelId: string) => Promise>; /** * Get a list of channels following a specific channel */ export declare const readFollowers: (channelId: string) => Promise>; /** * Get a list of channels that a specific channel follows */ export declare const readFollowings: (channelId: string) => Promise>;