import type { GrantPayload } from "./types.js"; /** * Type guard that checks whether an unknown value has the shape of a {@link GrantPayload}. * * Validates the presence and types of required fields: `grantId`, `userAddress`, * `builderAddress`, and `scopes` (non-empty string array). * * @example * ```typescript * const body = await request.json(); * if (!isValidGrant(body.grant)) { * return NextResponse.json({ error: "Invalid grant" }, { status: 400 }); * } * // body.grant is now typed as GrantPayload * const data = await getData({ privateKey, grant: body.grant }); * ``` */ export declare function isValidGrant(value: unknown): value is GrantPayload; //# sourceMappingURL=grants.d.ts.map