import { z } from 'zod'; declare const CredentialResponse: z.ZodObject<{ statusCode: z.ZodNumber; body: z.ZodObject<{ statusCode: z.ZodNumber; body: z.ZodObject<{ channels: z.ZodObject<{ mqtt: z.ZodObject<{ brokerUrl: z.ZodString; region: z.ZodString; clientId: z.ZodString; topics: z.ZodObject<{ status: z.ZodString; }, "strip", z.ZodTypeAny, { status?: string; }, { status?: string; }>; qos: z.ZodNumber; tls: z.ZodObject<{ enabled: z.ZodBoolean; caBase64: z.ZodString; certBase64: z.ZodString; keyBase64: z.ZodString; }, "strip", z.ZodTypeAny, { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }, { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }>; }, "strip", z.ZodTypeAny, { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }, { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }>; }, "strip", z.ZodTypeAny, { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }, { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }>; }, "strip", z.ZodTypeAny, { channels?: { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }; }, { channels?: { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }; }>; }, "strip", z.ZodTypeAny, { statusCode?: number; body?: { channels?: { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }; }; }, { statusCode?: number; body?: { channels?: { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }; }; }>; message: z.ZodString; }, "strip", z.ZodTypeAny, { message?: string; statusCode?: number; body?: { statusCode?: number; body?: { channels?: { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }; }; }; }, { message?: string; statusCode?: number; body?: { statusCode?: number; body?: { channels?: { mqtt?: { qos?: number; brokerUrl?: string; region?: string; clientId?: string; topics?: { status?: string; }; tls?: { enabled?: boolean; caBase64?: string; certBase64?: string; keyBase64?: string; }; }; }; }; }; }>; export type MqttCredential = z.infer['body']['body']['channels']['mqtt']; export declare class CredentialService { private token; private secret; private endpoint; private instanceId; private renewIntervalMs; private onRenew; private current; private renewTimer; private lastFetchTime; constructor(token: string, secret: string, endpoint: string, instanceId: string, renewIntervalMs: number, // Changed to interval, since new interface doesn't have expiration onRenew: (cred: MqttCredential) => void); fetch(): Promise; private computeSign; private scheduleRenewal; getCurrent(): MqttCredential | null; destroy(): void; } export {}; //# sourceMappingURL=credential.d.ts.map