import type * as Party from 'partykit/server'; export default class Server implements Party.Server { readonly room: Party.Room; readonly CF_TURN_API_TOKEN: string; readonly CF_TURN_APP_ID: string; private peers; constructor(room: Party.Room); /** * Handle HTTP requests for the TURN credentials. */ onRequest(req: Party.Request): Promise; onConnect(conn: Party.Connection, _ctx: Party.ConnectionContext): Promise; onClose(conn: Party.Connection): void; private broadcastPeerList; onMessage(message: string, sender: Party.Connection): void; } export declare function defaultHeaders(): Record; //# sourceMappingURL=server.d.ts.map