import type { NotificationTarget } from '@xopcai/gateway-contract'; import type { NotificationDevicePlatform } from './types.js'; export declare class PlatformPushError extends Error { readonly status: number; readonly code: string; constructor(status: number, code: string); } export declare function platformPushEndpoint(value: string): string | undefined; export declare function registerPlatformPushDevice(gatewayId: string, deviceId: string, pushToken: string, platform?: NotificationDevicePlatform, environment?: 'sandbox' | 'production'): Promise; export declare function removePlatformPushDevice(reference: string): Promise; export type PlatformPushDelivery = { endpointId: string; eventId: string; locale: 'en' | 'zh'; target: NotificationTarget; expiresAt: number; }; export declare function sendPlatformPush(message: PlatformPushDelivery, fetchImpl?: typeof fetch): Promise;