import type { ConnectorProtocol } from "../connectors/connector.js"; import { BroadcastChannel } from "../targets/broadcastchannel.js"; type WithRequestId = T & { apnsRequestId?: string; }; type WithSandbox = T & { useSandbox?: boolean; }; type WithDebug = T & { debug?: boolean; }; interface BroadcastChannelSettings { bundleId: string; messageStoragePolicy?: 1 | 0; } /** * Creates a new broadcast channel. * * @param connector The connector to be used to perform requests * @param settings Settings for the broadcast channel * @returns A new BroadcastChannel instance */ export declare function createBroadcastChannel(connector: ConnectorProtocol, settings: WithDebug>>): Promise; interface ChannelReadResponseBody { messageStoragePolicy: number; pushType: string; } type ChannelReadSettings = WithDebug>>; /** * Reads a specific broadcast channel. * * @param connector The connector to be used to perform requests * @param bChannel The broadcast channel to read * @param settings Optional settings for the request * @returns */ export declare function readBroadcastChannel(connector: ConnectorProtocol, bChannel: BroadcastChannel, settings?: ChannelReadSettings): Promise; type ChannelDeleteSettings = WithDebug>>; /** * Sends a request to delete an existing broadcast channel. * * @param connector * @param channelId * @param bundleId */ export declare function deleteBroadcastChannel(connector: ConnectorProtocol, bChannel: BroadcastChannel, settings?: ChannelDeleteSettings): Promise<{ success: true; apnsRequestId: string; }>; /** * Reads all channels for a given bundle ID. * Creates an array of valid targets against which notifications can be sent. * * @param connector The connector to be used to perform requests * @param bundleId The bundle ID for which to read channels * @param useSandbox Whether to use the sandbox environment * @returns An array of broadcast channels */ export declare function readAllBroadcastChannels(connector: ConnectorProtocol, bundleId: string, settings?: ChannelReadSettings): Promise; export {};