/** Resource types that support deletion from detail pages. */
export type DeletableResourceKind = "agent" | "skill" | "mcpServer" | "workflow";
export interface UseDeleteResourceReturn {
    /**
     * Delete the resource. Resolves on success, rejects on failure.
     * Shows a success toast on completion and an error toast on failure.
     */
    readonly deleteResource: () => Promise<void>;
    /** `true` while the delete request is in flight. */
    readonly isDeleting: boolean;
    /** Error from the last failed delete, or `null` when healthy. */
    readonly error: Error | null;
}
/**
 * Mutation hook for deleting a resource from its detail page.
 *
 * Wraps the type-specific delete RPC with loading state, toast
 * feedback, and error handling. The `resourceId` may be `null`
 * when the resource hasn't loaded yet — `deleteResource` becomes
 * a no-op in that case.
 *
 * @example
 * ```tsx
 * const { deleteResource, isDeleting } = useDeleteResource(
 *   "agent",
 *   resourceId,
 *   "PR Review Agent",
 * );
 *
 * const handleDelete = async () => {
 *   const confirmed = await confirm({ ... });
 *   if (confirmed) {
 *     await deleteResource();
 *     router.push("/library/agents");
 *   }
 * };
 * ```
 */
export declare function useDeleteResource(kind: DeletableResourceKind, resourceId: string | null, resourceName?: string): UseDeleteResourceReturn;
//# sourceMappingURL=useDeleteResource.d.ts.map