export declare function sha256Hex(input: string | Buffer): string; export declare function hmacSha256(key: Buffer | string, data: string): Buffer; /** 按 RFC 3986 encode, 比 encodeURIComponent 更严格 */ export declare function rfc3986Encode(s: string): string; /** Canonical query string: 字典序 sort + RFC 3986 encode */ export declare function canonicalizeQuery(params: Record): string; /** Canonical headers (lowercase + trim + sort) */ export declare function canonicalizeHeaders(headers: Record): { canonical: string; signed: string; }; export interface CanonicalRequestInput { method: string; uri: string; query: Record; headers: Record; payload: string; } export interface CanonicalRequest { request: string; signed_headers: string; payload_hash: string; } export declare function buildCanonicalRequest(input: CanonicalRequestInput): CanonicalRequest; /** ISO 8601 时间, 阿里云/火山要的格式 (e.g. "20260501T120000Z") */ export declare function basicIso8601(date?: Date): string; /** YYYYMMDD (用于 credential scope) */ export declare function dateYYYYMMDD(date?: Date): string; //# sourceMappingURL=canonical.d.ts.map