///
import { TSchema, Static } from '@sinclair/typebox';
import { FastifyRequest } from 'fastify';
import { TileJSON } from './tilejson';
export declare function hash(data: string | Buffer): Buffer;
/**
* Generate a random ID
*/
export declare function generateId(): string;
/**
* Encode a buffer to base32
*/
export declare function encodeBase32(buf: Buffer): string;
/**
* Generate an idempotent unique id for a given tilejson. Not all tilejson has
* an id field, so we use the tile URL as an identifier (assumes two tilejsons
* refering to the same tile URL are the same)
*/
export declare function getTilesetId(tilejson: TileJSON): string;
export declare function isFulfilledPromiseResult(result: PromiseSettledResult): result is PromiseFulfilledResult;
export declare function isRejectedPromiseResult(result: PromiseSettledResult): result is PromiseRejectedResult;
export declare function getBaseApiUrl(request: FastifyRequest): string;
export declare const NullableSchema: (schema: S) => import("@sinclair/typebox").TUnsafe | null>;
export declare function removeSearchParams(url: string, paramsToRemove: string[]): string;
export declare function noop(): void;