import { z } from 'zod'; export declare const hostCredentialSchema: z.ZodObject<{ gatewayUrl: z.ZodURL; gatewayId: z.ZodUUID; gatewayPublicKey: z.ZodString; tokens: z.ZodObject<{ accessToken: z.ZodString; accessTokenExpiresAt: z.ZodNumber; refreshToken: z.ZodString; refreshTokenExpiresAt: z.ZodNumber; }, z.core.$strict>; pendingRefresh: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; export interface DeviceHostIdentity { principalId: string; publicKey: string; privateKey: string; credential?: z.infer; } /** Owner bootstrap is used once; subsequent HTTP/WS requests use only signed host-scoped credentials. */ export declare function createDeviceHostCredentials(options: { origin: URL; identity: DeviceHostIdentity; bootstrapToken?: string; displayName: string; kind?: 'bridge' | 'sandbox'; signal: AbortSignal; persist(): Promise; }): Promise<{ headers(method: string, target: string, body?: string | Uint8Array, headers?: Record): Promise<{ Authorization: string; 'X-Xopc-Proof': string; }>; connectionHeaders(ticket: string): { 'X-Xopc-Proof': string; }; }>;